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
var mkdir = function(dir) { | |
// making directory without exception if exists | |
try { | |
fs.mkdirSync(dir, 0755); | |
} catch(e) { | |
if(e.code != "EEXIST") { | |
throw e; | |
} | |
} | |
}; |
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
(function() { | |
var canvas; | |
var ctx; | |
var isWorking = false; | |
var exchangeRate = 0; | |
var timerId; | |
var found = false; | |
var maxHPS = 0; | |
var hpsList = []; |
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
void switch_func(int n) { | |
char *s; | |
switch(n) { | |
case 0: | |
s = "Sun"; | |
if(0) | |
case 1: | |
{ s = "Mon"; } | |
if(0) | |
case 2: |
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
{ | |
maxCount: 6, | |
maxWord: 'shave', | |
minCount: 2, | |
minWord: 'hello', | |
average: 3.798704103671706 | |
} | |
2 guesses: 80 | |
3 guesses: 706 | |
4 guesses: 1160 |
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
// ["cigar","rebut","sissy","humph","awake","blush","focal","evade","naval","serve","heath","dwarf","model","karma","stink","grade","quiet","bench","abate","feign","major","death","fresh","crust","stool","colon","abase","marry","react","batty","pride","floss","helix","croak","staff","paper","unfed","whelp","trawl","outdo","adobe","crazy","sower","repay","digit","crate","cluck","spike","mimic","pound","maxim","linen","unmet","flesh","booby","forth","first","stand","belly","ivory","seedy","print","yearn","drain","bribe","stout","panel","crass","flume","offal","agree","error","swirl","argue","bleed","delta","flick","totem","wooer","front","shrub","parry","biome","lapel","start","greet","goner","golem","lusty","loopy","round","audit","lying","gamma","labor","islet","civic","forge","corny","moult","basic","salad","agate","spicy","spray","essay","fjord","spend","kebab","guild","aback","motor","alone","hatch","hyper","thumb","dowry","ought","belch","dutch","pilot","tweed","comet","jaunt","enema","steed","abyss","gro |
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
var fs = require("fs"); | |
var path = require("path"); | |
var rmdir = function(dir) { | |
var list = fs.readdirSync(dir); | |
for(var i = 0; i < list.length; i++) { | |
var filename = path.join(dir, list[i]); | |
var stat = fs.statSync(filename); | |
if(filename == "." || filename == "..") { |
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
<html><head><title>WebAssembly: JavaScript binding profiling</title> | |
<script> | |
onload = function() { | |
var textarea = document.getElementById("textarea"); | |
var log = function(message) { | |
var now = performance.now(); | |
textarea.value += (now - time).toFixed(3) + ": " + message + "\n"; | |
time = performance.now(); | |
}; | |
var time = performance.now(); |
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
var data = [1, 4, 5, 6, 7, 8]; | |
//var data = [2, 3, 5, 7, 11, 13, 17]; | |
//var data = [2, 3, 5, 10, 20]; | |
var a = []; | |
var r = function(u) { | |
if(a.length == data.length - 1) { | |
if(u) return solve(); | |
else return false; | |
} |
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
class _Main { | |
static function main(args:string[]): void { | |
var v = JSON.parse('["a", "b", "c"]'); | |
var i: int; | |
i = (v as Array.<int>)[0]; | |
log i; | |
} | |
} |
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
/* Smooth scrolling | |
Changes links that link to other parts of this page to scroll | |
smoothly to those links rather than jump to them directly, which | |
can be a little disorienting. | |
sil, http://www.kryogenix.org/ | |
v1.0 2003-11-11 | |
v1.1 2005-06-16 wrap it up in an object | |
*/ |
NewerOlder