time | std stick | srt stick | lng stick | banjo | loops | lazy-j | stable | j | jump-scrape |
<2018-02-01 Fri> | 20 | 15 | 10 | 3 | 2 | 0 | 0 | ? | ? |
<2018-03-01 Fri> | 24 | 16 | 11 | 1 | 2 | 0 | 0 | ? | ? |
<2018-04-01 Fri> | 25 | 18 | 27 | 2 | 2 | 0 | 0 | ? | ? |
<2018-05-01 Fri> | 40 | 49 | 31 | 37 | 5 | 6 | 8 | ? | ? |
<2018-05-07 Fri> | 33 | 60 | 34 | 30 | 4 | 7 | 11 | ? | ? |
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
const muhReducer = (state, action) => { | |
switch(action.type) { | |
case 'FROBNICATE': | |
return { | |
frobnicateCount: state.frobnicateCount + 1, | |
...state, | |
} | |
default: | |
return state | |
} |
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
const xs = [] | |
const scope = {} | |
for(scope.i = 0; scope.i < 3; ++scope.i) { | |
xs.push(() => console.log('scope.i is', scope.i)) | |
} | |
xs.forEach(f => f()) |
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
const xs = [] | |
for(var i = 0; i < 3; ++i) { | |
xs.push(() => console.log('i is', i)) | |
} | |
xs.forEach(f => f()) |
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
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking sources | |
unpacking source archive /nix/store/q2k8jpws9flml11pxyys19rn0ihd6pis-libressl-3.5.3.tar.gz | |
source root is libressl-3.5.3 | |
setting SOURCE_DATE_EPOCH to timestamp 1652669711 of file libressl-3.5.3/config.sub | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
patching sources | |
patching script interpreter paths in tests/ | |
tests/testssl: interpreter directive changed from "#!/bin/sh" to "/nix/store/m6pqblbr77ady86apyl7ickafgprjd9f-bash-5.1-p16/bin/sh" | |
tests/ssltest.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/m6pqblbr77ady86apyl7ickafgprjd9f-bash-5.1-p16/bin/sh" |
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
/** | |
* Typically when we think of map we think of lists. Let's take the ML notation | |
* for map of a list: | |
* | |
* ((a -> b) -> List a -> List b) | |
* | |
* With ML notation, the best way to read this is that the last arrow is the | |
* return type. The reason the notation exists this way is because functions in | |
* a functional language can be modeled as unary, or meaning they only have one | |
* argument. One can imagine multiple argument functions as sytactic sugar. |
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 bash | |
# -*- shell-mode -*- | |
if [ "$1" == "" ]; then | |
echo "Usage: use-fork <forked clone URL>" | |
exit 1 | |
fi | |
# Go to the repo involved and click fork | |
original_url="$(git remote get-url origin)" |
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
const R = require('ramda') | |
const fs = require('fs').promises | |
const headers = [ | |
'Device', | |
'Serial Number', | |
'Device Timestamp', | |
'Record Type', | |
'Historic Glucose mg/dL', | |
'Scan Glucose mg/dL', |
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
const fs = [] | |
for(var i = 0; i < 3; ++i) { | |
fs.push(() => console.log(i)) | |
} | |
fs.forEach(f => f()) | |
// with explicit scope | |
const fs = [] | |
const scope = { i: 0 } |
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
// f is the function - it takes a single element of the array and returns a new element | |
function map(f, array) { | |
var newArray = [] | |
for(var i = 0; i < array.length; ++i) { | |
var oldItem = array[i] | |
var newItem = f(oldItem) | |
newArray.push(newItem) | |
} | |
return newArray | |
} |
NewerOlder