I hereby claim:
- I am zeroem on github.
- I am darrell (https://keybase.io/darrell) on keybase.
- I have a public key whose fingerprint is 6647 2F81 4138 0586 F5E6 70BD C215 BBD0 6D44 906B
To claim this, I am signing this object:
trait Trait { | |
fn print(&mut self); | |
} | |
struct ImplA { | |
s: String, | |
} | |
impl Trait for ImplA { |
(defmacro foo [v & body] `(let [l# 5 ~@(mapcat (fn [b] [b `l#]) v)] ~@body)) | |
(clojure.pprint/pprint (macroexpand-1 '(foo [a b c] (println a b c)))) | |
;; NOTE: both uses of l# in the macro get a different gensym | |
(clojure.core/let | |
[l__4243__auto__ | |
5 | |
a | |
l__4242__auto__ |
Goal: let's see how well the temp file task performs | |
----- | |
Case: :temp-file | |
Evaluation count : 600 in 60 samples of 10 calls. | |
Execution time mean : 101.696807 ms | |
Execution time std-deviation : 263.953275 µs | |
Execution time lower quantile : 101.218162 ms ( 2.5%) | |
Execution time upper quantile : 102.208861 ms (97.5%) | |
Found 1 outliers in 60 samples (1.6667 %) |
" Vim Addon Manager | |
set nocompatible | filetype indent plugin on | syn on | |
fun SetupVAM() | |
let c = get(g:, 'vim_addon_manager', {}) | |
let g:vim_addon_manager = c | |
let c.plugin_root_dir = expand('$HOME', 1) . '/.vim/vim-addons' | |
let &rtp.=(empty(&rtp)?'':',').c.plugin_root_dir.'/vim-addon-manager' | |
let g:vim_addon_manager = { | |
\'shell_commands_run_method': 'system', |
I hereby claim:
To claim this, I am signing this object:
vagrant@raring:~$ virtualenv bad | |
New python executable in bad/bin/python | |
Installing distribute...........................................................................................................................................................................................................................done. | |
Installing pip................done. | |
vagrant@raring:~$ . bad/bin/activate | |
(bad)vagrant@raring:~$ pip install -U supervisor | |
PLAY [all] ******************************************************************** | |
GATHERING FACTS *************************************************************** | |
ok: [default] | |
TASK: [install envs] ********************************************************** | |
failed: [default] => {"cmd": "/home/vagrant/supervisor/bin/pip install -U --use-mirrors supervisor", "failed": true} | |
msg: stdout: New python executable in /home/vagrant/supervisor/bin/python | |
Installing distribute.................................................................................................. | |
....................................................................................................................... |
#!/bin/bash | |
COMMITS=$(git log --oneline | cut -d " " -f 1) | |
for COMMIT in $COMMITS | |
do | |
git checkout $COMMIT | |
./path/to/script.sh | |
#!/usr/bin/env php | |
<?php | |
if(!isset($argv[1])) { | |
echo 'Usage: ' . $argv[0] . ' <dddd>'; | |
} else if(4 !== strlen($argv[1])) { | |
trigger_error('Input must be only 4 digits'); | |
} else if(false !== strpos($argv[1],'4')) { | |
trigger_error('No body likes 4s anyway'); | |
} else { |
grep -i -o "source=\"[a-z._-]*\"" checkstyle.xml | sort | uniq | sed -e "s/source=\"\(.*\)\"/\1/ig" | xargs -i bash -c "echo {} \`grep '{}' checkstyle.xml | wc -l \`" |