Skip to content

Instantly share code, notes, and snippets.

View unionx's full-sized avatar
🦄
biu~biu~biu~

帝归 unionx

🦄
biu~biu~biu~
View GitHub Profile
@unionx
unionx / run.py
Created February 21, 2015 01:59
Try numba
#!/usr/bin/env python3
from numba import jit
from numpy import arange
import cProfile
##@jit
def sum2d(arr):
M, N = arr.shape
result = 0.0
@unionx
unionx / foobar.js
Last active March 26, 2020 15:09
JS promise
function foo() {
let p = new Promise(function(resolve, reject) {
setTimeout(function() {
console.log('foo');
resolve('foo111');
}, 1000);
});
return p;
}