This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir $HOME/deps | |
cd $HOME/deps | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
git clone https://github.com/google/skia.git | |
export PATH="${PWD}/depot_tools:${PATH}" | |
cd skia | |
python tools/git-sync-deps | |
//static | |
bin/gn gen out/release --args="is_official_build=true skia_use_system_expat=false skia_use_system_icu=false skia_use_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_libwebp=false extra_cflags_cc=[\"-frtti\"]" |