I hereby claim:
- I am altphi on github.
- I am altphi (https://keybase.io/altphi) on keybase.
- I have a public key whose fingerprint is 492B 128E 72EC 6EC7 E73A 363A FF67 3119 BCEF 6D0D
To claim this, I am signing this object:
javascript:(function()%7Bvar%20t=window.getSelection?window.getSelection().toString():document.selection.createRange().text;window.location='tweetbot:///post?text='+t+'%20:%20'+encodeURIComponent(window.location.href);%7D)() |
<html> | |
<head> | |
</head> | |
<body> | |
<script src="lib/yourlib.js"></script> | |
<script> | |
window.onload = function () { | |
EntryPoint.run(); | |
}; | |
</script> |
#!/usr/bin/env bash | |
# move this file to .git/hooks/post-merge | |
diff_results=$( git diff-tree --name-status -t -r --root HEAD@{1}..HEAD | grep -e '^M.*package.json$' ) | |
[[ "$?" == "0" ]] && ( | |
msg="display alert \"A package.json file changed! See list below.\" message \"${diff_results}\"" | |
osascript -e "${msg}" >/dev/null & | |
) | |
exit 0 |
#!/usr/bin/env sh | |
# leaves a backup of all changes in git stash, creates a patch ignoring whitespace changes, clears changes, applies patch | |
cd "$(git rev-parse --show-toplevel)" | |
git stash && git stash apply && git diff -w > changes.patch && git checkout . && git apply --whitespace=fix changes.patch && rm changes.patch |
;; 3n + 1 problem | |
;; https://en.wikipedia.org/wiki/Collatz_conjecture | |
(defn threen | |
([n] | |
(threen n 0)) | |
([n k] | |
(let [newK (if (>= n 1) (+ k 1) k)] | |
(if (= n 1) |
I hereby claim:
To claim this, I am signing this object: