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
#!/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 |
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 foo() { | |
let p = new Promise(function(resolve, reject) { | |
setTimeout(function() { | |
console.log('foo'); | |
resolve('foo111'); | |
}, 1000); | |
}); | |
return p; | |
} |
OlderNewer