Skip to content

Instantly share code, notes, and snippets.

View fadookie's full-sized avatar
🕹️
😹

Eliot Lash fadookie

🕹️
😹
View GitHub Profile
@TonnyXu
TonnyXu / UIKit_System_Notifications.h
Created January 18, 2011 01:37
All the notifications predefined by UIKit framework. Apple should provide this but they don't. So, take it if you need it.
// UIApplication.h
UIApplicationDidEnterBackgroundNotification __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
UIApplicationWillEnterForegroundNotification __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
UIApplicationDidFinishLaunchingNotification;
UIApplicationDidBecomeActiveNotification;
UIApplicationWillResignActiveNotification;
UIApplicationDidReceiveMemoryWarningNotification;
UIApplicationWillTerminateNotification;
UIApplicationSignificantTimeChangeNotification;
UIApplicationWillChangeStatusBarOrientationNotification; // userInfo contains NSNumber with new orientation
@gacha
gacha / colorbox-title-hack.js
Created March 24, 2011 08:59
This solves the long title problem on ColorBox. Tested only for this design http://colorpowered.com/colorbox/core/example1/index.html
$(document).bind('cbox_complete', function(){
if($('#cboxTitle').height() > 20){
$("#cboxTitle").hide();
$("<div>"+$("#cboxTitle").html()+"</div>").css({color: $("#cboxTitle").css('color')}).insertAfter("#cboxPhoto");
$.fn.colorbox.resize();
}
});
@matthewmccullough
matthewmccullough / git-deletealltags.bsh
Created April 1, 2011 20:29
Script to delete all tags both locally and remotely
for t in `git tag`
do
git push origin :$t
git tag -d $t
done
@rawbitrec
rawbitrec / HelloWorld.cpp
Last active September 27, 2015 06:48
Ye Olde Sea Pluss Pluss!
//created by Eliot Lash and Robert Muller on 10/3/10
//copyright Eliot Lash and Robert Muller 2011
//Welcome to Ye Olde Sea Pluss Pluss!
#include <iostream>
#include <string>
#include "olde.h"
#define normal
@fadookie
fadookie / HelloWorld.cpp
Created September 20, 2011 03:39 — forked from rawbitrec/HelloWorld.cpp
Ye Olde Sea Pluss Pluss!
//created by Eliot Lash and Robert Muller on 10/3/10
//copyright Eliot Lash and Robert Muller 2011
//Welcome to Ye Olde Sea Pluss Pluss!
#include <iostream>
#include <string>
#include "olde.h"
#define normal
anonymous
anonymous / snowfight
Created April 25, 2012 08:48
snowfight
import hypermedia.video.*; // Imports the OpenCV library
OpenCV opencv; // Creates a new OpenCV object
PImage movementImg; // Creates a new PImage to hold the movement image
int caughtSnow; // Creates a variable to hold the total number of popped SF
ArrayList SF; // Creates an ArrayList to hold the Flake objects
PImage snowPNG; // Creates a PImage that will hold the image of the bubble
boolean moveOK;
//-----------------------------------------SETUP
void setup()
@bpierre
bpierre / anchor-select.js
Created May 8, 2012 14:48
CSS Selectors anchors: /mypage.html#anchor-select(#content > h1)
(function(window) {
function getSelector(hash) {
var matches;
hash = hash.slice(1);
matches = hash.match(/^anchor-select\((.+)\)$/);
if (matches) {
return decodeURIComponent(matches[1]);
}
return false;
@triplefox
triplefox / gist:2900005
Created June 9, 2012 07:40
list of gamedev (and related) ircs
@deanputney
deanputney / giffer.sh
Created August 23, 2012 04:39
Giffer - Make gifs from any video
#!/bin/bash
# Installation:
#
# Get yourself ffmpeg and imagemagick.
# brew install ffmpeg
# brew install imagemagick
#
# I put this script at ~/script/giffer.sh and aliased it to giffer.sh
# alias giffer=/Users/<your_username>/scripts/giffer.sh
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no