I hereby claim:
- I am qtip on github.
- I am snider (https://keybase.io/snider) on keybase.
- I have a public key whose fingerprint is F81A 7B33 0752 6104 F29F 29AA 8331 692E 14A8 962E
To claim this, I am signing this object:
template<class UIntType> | |
VanDerCorputEngine<UIntType>::VanDerCorputEngine(unsigned int base) : | |
i(1), | |
base(base) { | |
} | |
template<class UIntType> | |
UIntType VanDerCorputEngine<UIntType>::index() const { | |
return i; | |
} |
#!/usr/bin/env python3 | |
from collections import defaultdict | |
def tsorted(pairs, reverse=False): | |
incoming = defaultdict(set) | |
outgoing = defaultdict(set) | |
for src, dst in pairs: | |
incoming[dst].add(src) | |
outgoing[src].add(dst) |
hi diffAdded ctermfg=green cterm=bold | |
hi diffRemoved ctermfg=red cterm=bold | |
hi diffLine ctermfg=magenta cterm=bold | |
hi diffFile ctermfg=yellow cterm=bold | |
hi diffSubname ctermfg=white |
I hereby claim:
To claim this, I am signing this object:
// ==UserScript== | |
// @match http://stackoverflow.com/* | |
// @match https://stackoverflow.com/* | |
// @match http://serverfault.com/* | |
// @match https://serverfault.com/* | |
// @match https://*.stackexchange.com/* | |
// @match http://*.stackexchange.com/* | |
// ==/UserScript== | |
document.querySelector("#hot-network-questions").style.display = "none"; |
/* | |
$ clang++ const.cpp -o const && ./const | |
Bus error: 10 | |
*/ | |
#include <stdio.h> | |
const char* text = "hello, world"; | |
int main(){ |
package cubic; | |
public class Cubic { | |
public static final float cubic(float x, float... v) { | |
if (x <= v[0]) { | |
return v[1]; | |
} | |
x = Math.min(Math.max(v[0], x), v[v.length - 2]); | |
int i; | |
for (i = 0; i < v.length && v[i + 6] < x; i += 6); |
// ==UserScript== | |
// @match http://jira.fanhattan.com/* | |
// @match https://jira.fanhattan.com/* | |
// ==/UserScript== | |
var li = document.createElement("li"); | |
var label = document.createElement("li"); | |
document.querySelector(".aui-nav").appendChild(li); | |
document.querySelector(".aui-nav").appendChild(label); |
#include <stdio.h> | |
char msg[] = { 0x41, 0x6D, 0x65, 0x72, 0x69, 0x63, 0x61, 0x20, 0x43, 0x61, 0x6E, 0x20, 0x43, 0x6F, 0x64, 0x65, 0x20 }; | |
int main(void){ | |
printf("%s\n", msg); // output: America Can Code | |
return 0; | |
} |
def lerp(a,b,x): | |
""" | |
0.0 <= a,b <= 1.0 | |
0.0 <= x <= 1.0 | |
v x | |
---- | |
a (0) | |
b (1) |