Skip to content

Instantly share code, notes, and snippets.

View gist:6618df4e05a7e11a6a1c48587f6fec2c
use "collections"
use "format"
use "itertools"
use "time"
class val UUID is Equatable[UUID]
"""
An UUID. Currently it can be used to generate UUIDs of versions 3, 4 and 5.
```
@KittyMac
KittyMac / gist:2b4a0e573620dbdf44705bc8e729fe1a
Created Apr 1, 2016
C# implementation of atof; replacement when necessary for float.TryPars; approximately 2.4x faster
View gist:2b4a0e573620dbdf44705bc8e729fe1a
private float atof(char[] num, ref int index) {
float integerPart = 0;
float fractionPart = 0;
float divisorForFraction = 1;
float sign = 1;
char numIndex;
/*Take care of +/- sign*/
if (num [index] == '-') {
index++;