What do you want to save?
Add Code snippet
New code examples
-
Go 2021-10-05 14:02:04
time now golang int64
now := time.Now() // current local time sec := now.Unix() // number of seconds since January 1, 1970 UTC nsec := now.UnixNano() // number of nanoseconds since January 1, 1970 UTC fmt.Println(now) // time.Time fmt.Println(sec) // int64 fmt.Pri... Add solution -
C 2021-10-03 15:33:05
blockchain implementation
int hash(); void printStruct(); void printChain(); void printWallet(); void setLocation(); int Random(); int rand(); int getBlock(); void printNewChain(); struct Block{ int locationBefore; int machineID; int locationCurrent; }; int Random(int lower, int u... Add solution -
C# 2021-10-01 21:56:08
split a datatable based on number of rows
DataTable[] splittedtables = tbl.AsEnumerable() .Select((row, index) => new { row, index }) .GroupBy(x => x.index / 12) // integer division, the fractional part is truncated .Select(g => g.Select(x => x.row).CopyToDataTable()) ... Add solution -
TypeScript 2021-09-27 17:10:01
typescript type vs interface
/** * Modern Typescript types and interfaces are both very powerful (2020) * It is almost down to personal choice, these days. * Key differences: - The type alias can also be used for other types such as primitives, unions, and tuples. - Unlike... Add solution -
C 2021-09-25 15:51:04
BlockChain in c
int hash(); void printStruct(); void printChain(); void printWallet(); void setLocation(); int Random(); int rand(); int getBlock(); void printNewChain(); struct Block{ int locationBefore; int machineID; int locationCurrent; }; int Random(int lower, int u... Add solution
Best helpers
Ranking is empty