https://www.geoguessr.com/battle-royale/7b6590b0-5502-4b00-b151-00b21d19ae2e
This file contains hidden or 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 node | |
const args = process.argv.slice(2); | |
const [modfn, ...params] = args; | |
const [mod, fn] = modfn.split('.'); | |
const Mod = require(mod); |
This file contains hidden or 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
Runtime Function/C++ Builtin Time Count | |
======================================================================================== | |
JS_Execution 6222.59ms 29.35% 503037 3.41% | |
GC_MC_BACKGROUND_MARKING 2808.84ms 13.25% 138 0.00% | |
FunctionCallback 2007.30ms 9.47% 303771 2.06% | |
GC_SCAVENGER_BACKGROUND_SCAVENGE_PARALLEL 1764.63ms 8.32% 985 0.01% | |
RecompileConcurrent 1564.55ms 7.38% 559 0.00% | |
GC_MC_BACKGROUND_SWEEPING 722.36ms 3.41% 157 0.00% | |
GC_SCAVENGER_SCAVENGE_PARALLEL 471.87ms 2.23% 408 0.00% | |
Map_TransitionToDataProperty 401.26ms 1.89% 1874272 12.70% |
This file contains hidden or 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
package-lock=true | |
shrinkwrap=true |
-
Call to Action: Accelerating Node.js Growth
Invitation to the Package Maintenance Working Group
https://medium.com/@nodejs/call-to-action-accelerating-node-js-growth-e4862bee2919
-
Small world with high risks
A study of security threats in the npm ecosystem
This file contains hidden or 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
node_modules_age() { | |
FOLDER="node_modules" | |
if [[ ! -d ${FOLDER} ]]; then | |
exit | |
fi | |
MTIME=$(stat -t %s -f %B -- ${FOLDER}) |
This file contains hidden or 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
GET /null | |
nes null | |
wreck + json null | |
GET /null-with-json-header | |
nes null | |
wreck + json null | |
GET /null-with-text-header | |
nes null |
This file contains hidden or 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
#!/bin/bash | |
SUFFIX=$(date +%m%d) | |
BASE_FOLDER="./split-economist-${SUFFIX}" | |
ISSUES=($(find ~/Downloads/Issue*.zip -type f)) | |
if [[ ${#ISSUES[@]} != 1 ]]; then | |
echo "Could not find exactly 1 Economist issue zip"; | |
exit 1 |
This file contains hidden or 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 forge = require("node-forge"); | |
function trimZeroes(data) { | |
return data.toString().replace(/^\0+/, "").replace(/\0+$/, ""); | |
} | |
function tangoDecrypt(tangoHash, tangoSharedSecret) { | |
var decodedKey = new Buffer(tangoSharedSecret, "base64"); | |
var ivSize = decodedKey.length; |
This file contains hidden or 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 one = ejs.compile("one.ejs"), | |
two = ejs.compile("two.ejs"); | |
console.log(one({ myData: "ohai", two: two })); |
NewerOlder