Skip to content

Instantly share code, notes, and snippets.

@tamzinblake
tamzinblake / cascadia_professional_ethics.md
Last active August 29, 2015 14:16
CascadiaJS Professional Ethics Talk Proposal
@tamzinblake
tamzinblake / git_blame.sh
Created October 2, 2014 02:39
How to find lines of code by a particular author
for i in `git ls-tree -r master --name-only`; do [[ -n $(git blame $i | grep 'TJ Koblentz') ]] && echo $i; git blame $i | grep 'TJ Koblentz'; done | less -S

Keybase proof

I hereby claim:

  • I am thomblake on github.
  • I am thomblake (https://keybase.io/thomblake) on keybase.
  • I have a public key whose fingerprint is E766 FE1F 6C93 81E5 5B08 D875 4193 DABC 127E 7585

To claim this, I am signing this object:

$ git diff master
diff --git a/lib/ls.js b/lib/ls.js
index 842b612..194aae6 100644
--- a/lib/ls.js
+++ b/lib/ls.js
@@ -63,6 +63,8 @@ function ls (args, silent, cb) {
}
console.log(out)
+ if (args.length && !data._found) process.exitCode = 1
@tamzinblake
tamzinblake / resume.md
Last active September 14, 2020 17:14
My resume
@tamzinblake
tamzinblake / bayes.tsv
Created April 18, 2012 18:58
bits, log odds, and percent
bits odds percent
-16 1:65536 0.0015%
-15 1:32768 0.0031%
-14 1:16384 0.0061%
-13 1:8192 0.0122%
-12 1:4096 0.0244%
-11 1:2048 0.0488%
-10 1:1024 0.0976%
-9 1:512 0.1949%
-8 1:256 0.3891%
@tamzinblake
tamzinblake / foo.js
Created October 12, 2011 21:25
fixed array function
function arrayFunction () {
var f = function (p, v) {
if (arguments.length > 1) {
arguments.callee[p] = v
}
return arguments.callee[p]
}
for (var i = 0; i < arguments.length; i++) {
f[i] = arguments[i]
@tamzinblake
tamzinblake / bar.js
Created October 12, 2011 20:50
simpler version
function bar (p) { return p }
function barcons () {}
barcons.prototype=bar
var c = new barcons
c(1)
@tamzinblake
tamzinblake / foo.js
Created October 12, 2011 20:31
javascript function prototype
function foo (p, v) {
if (arguments.length > 1) {
arguments.callee[p] = v
}
return arguments.callee[p]
}
function arrayFunction (arr) {
for (var i = 0; i < arr.length; i++) {
this[i] = arr[i]
@tamzinblake
tamzinblake / npm-debug.log
Created October 6, 2011 01:47
windows npm install fail
info it worked if it ends with ok
verbose cli [ 'c:\\node\\bin\\node.exe',
verbose cli 'c:\\node\\npm\\cli.js',
verbose cli 'install',
verbose cli 'npm',
verbose cli '-gf' ]
info using npm@1.0.93
info using node@v0.5.8
verbose config file C:\Documents and Settings\Administrator\.npmrc
verbose config file c:\node\etc\npmrc