Derived from the D3.js example gist 3616279.
- undirected multigraph where you can add nodes, links and delete them
def willitfloat(s): | |
try: | |
float(s) | |
return True | |
except ValueError: | |
return False |
Derived from the D3.js example gist 3616279.
var bench = (fn, n) => { | |
const title = fn.name; | |
console.time(title); | |
while (n--) fn(); | |
console.timeEnd(title); | |
}; |
from math import * | |
def f(x): | |
return int(round(96.75 + -21.98*cos(x*1.118) + 13.29*sin(x*1.118) + -8.387*cos(2*x*1.118)\ | |
+ 17.94*sin(2*x*1.118) + 1.265*cos(3*x*1.118) + 16.58*sin(3*x*1.118)\ | |
+ 3.988*cos(4*x*1.118) + 8.463*sin(4*x*1.118) + 0.3583*cos(5*x*1.118)\ | |
+ 5.878*sin(5*x*1.118))) | |
print "".join([chr(f(x)) for x in range(12)]) |
#include <iostream> | |
#include <utility> | |
#include <unordered_map> | |
int main(){ | |
std::unordered_map<std::string, std::string> m; | |
// uses pair's copy-constructor | |
m.emplace(std::make_pair(std::string("a"), std::string("a"))); |
__mergesort__ = require( "./sort/mergesort.js").__mergesort__ | |
tapemerge = require("./merge/tapemerge.js").tapemerge | |
mergesort = __mergesort__(tapemerge) | |
asc = function ( a , b ) { return a < b ? -1 : a > b ? 1 : 0 ; } | |
gen = function ( n ) { var a = [] ; var i = n ; while ( i-- ) { a.push(Math.random()) } ; return a ; } |
I hereby claim:
To claim this, I am signing this object:
## | |
## Example for October 6, 2015 | |
## | |
Server = http://ala.seblu.net/repos/2015/10/06/$repo/os/$arch |
mount /dev/sda2 /mnt/sda2 | |
chroot /mnt/sda2 | |
mount -t proc proc /proc | |
mount -t sysfs sys /sys | |
mount -t devtmpfs udev /dev | |
mkinitcpio -p linux |
$ sudo pacman -Syu | |
:: Synchronizing package databases... | |
core 122.5 KiB 2042K/s 00:00 [-----------------------------------------------] 100% | |
extra 1763.9 KiB 5.94M/s 00:00 [-----------------------------------------------] 100% | |
community 3.3 MiB 5.78M/s 00:01 [-----------------------------------------------] 100% | |
:: Starting full system upgrade... | |
resolving dependencies... | |
looking for conflicting packages... | |
(51/51) checking keys in keyring [-----------------------------------------------] | |
(51/51) checking package integrity [-----------------------------------------------] 100% |