What do you want to save?
Add Code snippet
New code examples
-
C# 2021-10-06 09:12:03
c# output double with precision
Digits after decimal point // just two decimal places String.Format("{0:0.00}", 123.4567); // "123.46" String.Format("{0:0.00}", 123.4); // "123.40" String.Format("{0:0.00}", 123.0); /... Add solution -
C# 2021-10-04 22:50:05
export TFS with attachments
private static void ExportVso() { // Connection to the Team Project Collection TfsTeamProjectCollection tpc = TfsTeamProjectCollectionFactory.GetTeamProjectCollection( new Uri("https://http://idahopower... Add solution -
C# 2021-10-04 19:45:02
c# write variable in string
// Method 1 Interpolation //Interpolation Strings are strings that are interpertated at run time for your local vars //This string must still use escape chars such as \\ and '{' char must be typed twice to show up. int Num = 1; String InterpolationString ... Add solution -
Other 2021-10-01 22:04:05
text hyperlink unity
// Check links in text void CheckLinks () { Regex regx = new Regex ("((http://|https://|www\\.)([A-Z0-9.-:]{1,})\\.[0-9A-Z?;~&#=\\-_\\./]{2,})" , RegexOptions.IgnoreCase | RegexOptions.Singleline); MatchCollection matches = regx.Match... Add solution -
Java 2021-10-01 17:28:07
android retry pollicy
/** * Attempts to prepare the request for a retry. If there are no more attempts remaining in the * request's retry policy, a timeout exception is thrown. * @param request The request to use. */ protected static void attemptRetryOnException(String log... Add solution -
Lua 2021-09-30 08:58:03
FiveM Lua How to create table of all online player id
for _, playerId in ipairs(GetPlayers()) do local name = GetPlayerName(playerId) print(('Player %s with id %i is in the server'):format(name, playerId)) -- ('%s'):format('text') is same as string.format('%s', 'text) end Add solution