Skip to content

Instantly share code, notes, and snippets.

@jacobsandlund
jacobsandlund / index.html
Last active May 16, 2016 02:55
Mouse Movement (quantized)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Mouse Movement</title>
<style>
body {
margin: 0;
}
@jacobsandlund
jacobsandlund / version.txt
Created March 27, 2016 22:57
vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 26 2016 06:40:26)
MacOS X (unix) version
Included patches: 1-1655
Compiled by travis@Traviss-Mac-139.local
Huge version with MacVim GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_sgr +tag_old_static
+arabic +find_in_path -mouse_sysmouse -tag_any_white
+autocmd +float +mouse_urxvt -tcl
+balloon_eval +folding +mouse_xterm +terminfo
+browse -footer +multi_byte +termresponse
@jacobsandlund
jacobsandlund / feb-7-2013-2897d56d958b2deba99694e211efe310830320a7.txt
Last active March 28, 2016 00:12
Start times of various versions of YCM
times in msec
clock self+sourced self: sourced script
clock elapsed: other lines
000.014 000.014: --- VIM STARTING ---
000.078 000.064: Allocated generic buffers
000.328 000.250: locale set
000.341 000.013: GUI prepared
@jacobsandlund
jacobsandlund / pi_testing.txt
Last active August 29, 2015 14:04
pi testing
OFF
@jacobsandlund
jacobsandlund / stdout
Last active December 14, 2015 22:59
Meteor blocking with callback on server.
$ meteor
[[[[[ ~/dev/meteortest ]]]]]
Running on: http://localhost:3000/
update collections
callback
after
callback
after
callback
@jacobsandlund
jacobsandlund / simple_test_runner.js
Last active December 11, 2015 01:59
Run simple unit tests.
var lineWidth = 80 - 'PASS'.length - 4 * 3; // 4 * 3 is for indenting 4 times
var suites = {
'test foo': require('./test/test_foo'),
'test bar': require('./test/test_bar'),
};
var padding = function(length, pad) {
return (new Array(length + 1)).join(pad || ' ');
};
@jacobsandlund
jacobsandlund / split_opts.sh
Created March 27, 2012 23:17
Split combined short shell options
#!/bin/sh
# This shows how to handle combined short options along with
# other long and short options. It does so by splitting them
# apart (e.g. 'tar -xvzf ...' -> 'tar -x -v -z -f ...')
while test $# -gt 0
do
case $1 in
@jacobsandlund
jacobsandlund / solarized.css
Created February 28, 2012 00:30 — forked from scotu/solarized.css
Solarized Light Pygments CSS
.highlight .c { color: #586E75 } /* Comment */
.highlight .err { color: #93A1A1 } /* Error */
.highlight .g { color: #93A1A1 } /* Generic */
.highlight .k { color: #859900 } /* Keyword */
.highlight .l { color: #93A1A1 } /* Literal */
.highlight .n { color: #657b83 } /* Name */
.highlight .o { color: #859900 } /* Operator */
.highlight .x { color: #CB4B16 } /* Other */
.highlight .p { color: #657b83 } /* Punctuation */
.highlight .cm { color: #586E75 } /* Comment.Multiline */