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
# 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
#
/**
* 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
@flyingoctopus
flyingoctopus / notes.md
Created September 10, 2015 18:10
Light Up Bowen Murray Meetings Notes

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

" Fuck you, help key.
set fuoptions=maxvert,maxhorz
inoremap <F1> <ESC>:set invfullscreen<CR>a
nnoremap <F1> :set invfullscreen<CR>
vnoremap <F1> :set invfullscreen<CR>
@flyingoctopus
flyingoctopus / announce_party.js
Created March 14, 2011 21:20
how awesome is this code?
announce_party: function(cb_name, info)
{
info = this.parse_flash_args(info);
var publishHref = window.location.href.split('?')[0];
var chr;
if (info.screen != '' && info.screen != undefined)
{
if (publishHref.indexOf("?")!=-1) {
chr = "&";
}
1. Restart the computer. If necessary, use the reset/interrupt button.
2. Immediately after the system startup tone, press and hold the Command-Option-O-F key combination. The computer starts up to a text-only screen, indicating that you are in Open Firmware.
3. At the prompt, type: eject cd
4. Press Return.
5. Type: mac-boot
6. Press Return
@flyingoctopus
flyingoctopus / coffee-stained-paper.js
Created August 31, 2011 23:33 — forked from mnmly/coffee-stained-paper.js
A tiny shim for Paper.js/CoffeeScript prototyping
window.stainedPaper = function (func) {
var canvas = document.createElement('canvas');
document.body.appendChild(canvas);
paper.setup(canvas);
func.call(paper);
};
@flyingoctopus
flyingoctopus / .inputrc
Created September 8, 2011 18:57 — forked from tpope/.inputrc
Basic amenities for vi readline bindings
set keymap vi-insert
Control-a: beginning-of-line
Control-b: backward-char
Control-d: delete-char
Control-e: end-of-line
Control-f: forward-char
Control-k: kill-line
Control-n: next-history
Control-p: previous-history
set keymap emacs-ctlx
@flyingoctopus
flyingoctopus / archive_github_repo.sh
Created October 17, 2011 22:55 — forked from pgib/archive_github_repo.sh
Put this in your shell's respective dot profile and smoke it!
archive_github_repo()
{
if [ ! -d .git ]; then
echo "You must run this from within the root of your git repo."
exit 1
fi
pwd=`pwd`
repo_url=`git config --local --get remote.origin.url`
repo_name=`echo $repo_url | awk -F / '{print $2}' | sed -e s/.git//`
http://www.yourawesomesite.com/index.html?name=<script>alert('You just found a XSS vulnerability')</script>