Skip to content

Instantly share code, notes, and snippets.

View danreeves's full-sized avatar
💀
while true {}

Dan Reeves danreeves

💀
while true {}
View GitHub Profile
body {
background: #333333;
color: #ddd;
white-space: pre;
font-family: monospace;
}
a {
color: #ff9000;
}
@danreeves
danreeves / .zshrc
Last active November 25, 2017 18:00
My zshrc file
### history file config
HISTFILE=~/.zsh_history
HISTSIZE=999999999
SAVEHIST=$HISTSIZE
setopt APPEND_HISTORY
### better tab completion
autoload -U compinit
compinit
# case insensitive
@danreeves
danreeves / Preferences.sublime-text
Last active February 8, 2017 17:58
My Sublime Text (3) preferences
{
"always_show_minimap_viewport": true,
"auto_complete_delay": 0,
"binary_file_patterns":
[
".git/*",
"converted-html/*"
],
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/One Dark (SL).tmTheme",
@danreeves
danreeves / wisc.zsh
Last active December 30, 2015 21:39
What Is Status Code ... ? Grabs the name of the status code you enter from Wikipedia. e.g: ```` --> wisc 404 404 Not Found ````
#!/bin/zsh
if [[ $1 == '' ]]; then
print 'Please pass in a status code, e.g. 404'
exit 2
fi
A='/\>('
B='[^\<]*?)\</ and print $1'
REGEX=$A$1$B
@danreeves
danreeves / tree.js
Created April 24, 2014 16:13
fractal tree
// canvas element and 2D context
var canvas = document.createElement( 'canvas' ),
ctx = canvas.getContext( '2d' );
canvas.width = 800;
canvas.height = 600;
document.body.appendChild(canvas);
@danreeves
danreeves / keybase.md
Last active August 29, 2015 14:07
Verifying myself on keybase

Keybase proof

I hereby claim:

  • I am danreeves on github.
  • I am danreeves (https://keybase.io/danreeves) on keybase.
  • I have a public key whose fingerprint is E230 EFC4 9EE1 0E31 9C0F D345 DCDE 2CA4 7555 5C87

To claim this, I am signing this object:

@danreeves
danreeves / goty-2014.txt
Last active October 4, 2016 16:47
goty.txt
1. Transistor
2. Wolfenstein: The New Order
3. Gang Beasts
4. Nidhogg
5. Divinity Original Sin
Honourable mentions:
Age of Wonders III
Insurgency
Middle-earth: Shadow of Mordor
@danreeves
danreeves / index.js
Last active August 29, 2015 14:13
requirebin sketch
var plz = require('please-ajax');
plz.get('http://reqr.es/api/users', {promise:true})
.then(function (d) {
append('GET: ');
append(d);
append('<br>');
});
plz.delete('http://reqr.es/api/users/1', {promise:true})
@danreeves
danreeves / games-2015.md
Last active October 4, 2016 16:46
Played in 2015
  • Tomb Raider (2013) - really good character development, felt almost like last of us
  • Witcher 2 - excellent gameplay, looking forward to 3
  • Insurgency - cant stop playing
  • FFXIV - time sink,looking forward to expansion
  • Talos Principle - nice puzzles, both real and metaphorical, got kinda bored
  • Life Is Strange - modern without being contrived or inauthentic, interesting, great sound track
    • Episode 1
    • Episode 2
    • Episode 3
  • Episode 4
@danreeves
danreeves / timePageLoad.js
Created February 10, 2015 11:58
Times the page load. Taken from http://timkadlec.com/
window.onload = function(){
setTimeout(function(){
window.performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {};
var t = performance.timing || {};
if (!t) {
//fail silently
return;
}