Skip to content

Instantly share code, notes, and snippets.

@heckj
heckj / gist:297037
Last active September 4, 2015 09:07
NSConf Notes
from http://dl.dropbox.com/u/34351/NSConferenceNotes.txt
Calendar URL is http://ottersoftware.squarespace.com/storage/nsconference/NSConference_UK_Mac.ics in case you want to subscribe (thanks to @iamleeg/@sgaw)
^^ Calendar has been updated to reflect changes
Twitter tag is #nsconf, or follow/message @nsconfr to broadcast your tweets, auto-magically adding the #nsconf tag.
{ PLEASE TYPE ON SEPARATE LINES UNTIL OTHERS HAVE FINISHED THEIR LINES }
{ Two people editing the same line may cause the characters to mix }
{ if they do, please send a screenshot of the window to monkeys@codingmonkeys.de }
{ when putting this one in "Conference" mode, the links become clickable }
/* Graph JavaScript framework, version 0.0.1
* (c) 2006 Aslak Hellesoy <aslak.hellesoy@gmail.com>
* (c) 2006 Dave Hoover <dave.hoover@gmail.com>
*
* Ported from Graph::Layouter::Spring in
* http://search.cpan.org/~pasky/Graph-Layderer-0.02/
* The algorithm is based on a spring-style layouter of a Java-based social
* network tracker PieSpy written by Paul Mutton E<lt>paul@jibble.orgE<gt>.
*
* Graph is freely distributable under the terms of an MIT-style license.
/* expects RaphaelJS - http://raphaeljs.com/ */
/* http://github.com/DmitryBaranovskiy/raphael */
var redraw;
var height = 300;
var width = 400;
/* only do all this when document has finished loading (needed for RaphaelJS) */
window.onload = function() {
@heckj
heckj / .xcconfig settings script
Created December 7, 2010 05:20
AppleScript that will Hoseyify all your currently-open Xcode project warnings
property kHoseyXcodeWarningSettings : {¬
{"GCC_WARN_CHECK_SWITCH_STATEMENTS", "YES"}, ¬
{"GCC_WARN_SHADOW", "YES"}, ¬
{"GCC_WARN_64_TO_32_BIT_CONVERSION", "YES"}, ¬
{"GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED", "YES"}, ¬
{"GCC_WARN_ABOUT_RETURN_TYPE", "YES"}, ¬
{"GCC_WARN_MISSING_PARENTHESES", "YES"}, ¬
{"GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS", "YES"}, ¬
{"GCC_WARN_ABOUT_MISSING_NEWLINE", "YES"}, ¬
{"GCC_WARN_SIGN_COMPARE", "YES"}, ¬
@heckj
heckj / testsetup.sh
Created August 10, 2011 16:44
run components for functional tests under screen
# script to background run processes needed to functionally test project
function screen_it {
#newline for screen execution of commands
NL=`echo -ne '\015'`
screen -S project -X screen -t $1
screen -S project -p $1 -X stuff "$2$NL"
}
screen -d -m -S project -t project
@heckj
heckj / .gitignore
Created August 20, 2011 18:59
gitignore for xcode 4
# Exclude the build directory
build/*
# Exclude temp nibs and swap files
*~.nib
*.swp
# Exclude OS X folder attributes
.DS_Store
@heckj
heckj / eventlet_actor.py
Created August 21, 2011 06:18
Eventlet based actor class (from eventlet/coros.py)
import collections
import warnings
import eventlet
from eventlet import event
from eventlet import greenpool
from eventlet import greenthread
class Actor(object):
@heckj
heckj / gist:2048157
Created March 16, 2012 02:23
shell script to auth against keystone essex
#!/bin/bash
set -e
[[ $1 == "-c" ]] && {
CONTINUE=yes
shift
}
URL=$1
USER=$2
@heckj
heckj / bp.sh
Created March 26, 2012 20:41 — forked from vishvananda/bp.sh
Script for backporting OpenStack branches to milestone-proposed
#!/usr/bin/env bash
# This is a little script to make backporting patches to milestone proposed.
# Instructions
# ------------
# Make sure that milestone-proposed exists and is up to date:
# git branch -D milestone-proposed
# git checkout -b milestone-proposed origin/milestone-proposed
# Grab the file and stick it in your <project> directory:
# curl -OL https://raw.github.com/gist/2206428/bp.sh
# Make sure the script is runnable:
@heckj
heckj / .cloudenvy
Created October 28, 2012 17:41
cloudenvy files for DevStack
cloudenvy:
keypair_name: heckj
keypair_location: /home/heckj/.ssh/id_dsa.pub
clouds:
env4:
os_auth_url: http://myopenstack.instance.com:5000/v2.0/
os_username: heckj
os_password: **********
os_tenant_name: heckj-project