Skip to content

Instantly share code, notes, and snippets.

View flyingoctopus's full-sized avatar

Vincent van Haaff flyingoctopus

  • flyingoctopus
  • Vancouver, BC
View GitHub Profile
package main
import (
"fmt"
"log"
"math/rand"
"regexp"
"strconv"
"strings"
"time"
set t_Co=256
filetype off
"call pathogen#runtime_append_all_bundles()
filetype plugin indent on
set nocompatible
" Security
set modelines=0
set t_Co=256
filetype off
"call pathogen#runtime_append_all_bundles()
filetype plugin indent on
set nocompatible
" Security
set modelines=0

Keybase proof

I hereby claim:

  • I am flyingoctopus on github.
  • I am vincentpants (https://keybase.io/vincentpants) on keybase.
  • I have a public key ASA8aG1NR8zSYb3Y-Xn3SxIa8HxZoKwwCZcAS2HkpGAp1wo

To claim this, I am signing this object:

@flyingoctopus
flyingoctopus / of.zsh
Created December 15, 2015 07:51 — forked from brandonpittman/of.zsh
A simple shell function to create tasks in OmniFocus
#!/bin/zsh
# If you use #'s for defer and start dates, you'll need to escape the #'s or
# quote the whole string.
function of () {
if [[ $# -eq 0 ]]; then
open -a "OmniFocus"
else
osascript <<EOT
@flyingoctopus
flyingoctopus / notes.md
Created September 10, 2015 18:10
Light Up Bowen Murray Meetings Notes

= Light Up Bowen Parade Walking Route = == Villiage Square ==

/**
* I converted the SCSS mixin to LESS for the awesome coders like myself in response to a blog post on 37Signals - http://37signals.com/svn/posts/3271-easy-retina-ready-images-using-scss
*
* Update: 2014-08-04 - Updated a long-standing bug where retina images were shown no matter what in the first background-image property.
* - Updated retina media query to be more reliable ()
* Update: 2013-11-13 - Picked up another technique thanks to reading this post from Tyler Tate, auto-fill in the second filename for the retina image, http://tylertate.com/blog/2013/06/11/retina-images-using-media-queries-and-LESS-CSS.html
* Update: 2013-04-16 - Have recently found a few use cases when using a retina pattern from Subtle Patterns on the <body>, this has come in handy
* Update: 2013-04-05 - Some research in the Wordpress Core(http://core.trac.wordpress.org/ticket/22238#comment:5) was pointed out that some tests may be redundant (Thanks @kbav) so I've cleaned these up
* Update: 2012-12-29 - U
# openFrameworks OS X makefile
#
# make help : shows this message
# make Debug: makes the application with debug symbols
# make Release: makes the app with optimizations
# make: the same as make Release
# make CleanDebug: cleans the Debug target
# make CleanRelease: cleans the Release target
# make clean: cleans everything
#
@flyingoctopus
flyingoctopus / session_task.rb
Created January 9, 2014 22:13
batch create
data_array = []
data = $redis.smembers(:sessions)
data.each do |d|
puts "adding to postgres: #{d}"
hash = eval d
object = hash.symbolize_keys!
puts 'saved!'
data_array.push object
$redis.srem(:sessions, d) # commented out for debugging purposes
@flyingoctopus
flyingoctopus / crontab
Last active January 1, 2016 13:39
better, happier, more productive.
0 9 * * 1-5 ln -f /etc/hosts_worktime /etc/hosts
0 16 * * 1-5 ln -f /etc/hosts_playtime /etc/hosts