Skip to content

Instantly share code, notes, and snippets.

View i386's full-sized avatar

James William Dumay i386

View GitHub Profile
#!/bin/sh
## Dont forget to `chmod +x phpunit`
echo "Not the real phpunit"
exit -1
@i386
i386 / main.java
Created October 18, 2012 08:12
A nice java api for that thing
public class LightMain
{
public static void main(String[] args) throws Exception
{
Light.letThereBe(args[0])
.color(Color.CYAN)
.color(Color.RED)
.color(Color.BLUE)
.gradient(Color.GREEN, Color.PINK, 5);
@i386
i386 / gist:4054063
Created November 11, 2012 07:22
Delegate implementor
//
// DSAppDelegate.m
// Autoexpand
//
// Created by James Dumay on 11/11/12.
// Copyright (c) 2012 James Dumay. All rights reserved.
//
#import "DSAppDelegate.h"
#import "DSValue.h"
@i386
i386 / gist:4054064
Created November 11, 2012 07:23
model
@interface DSValue : NSObject
@property (strong) NSString *displayValue;
-initWithDisplayValue:(NSString*)value;
@end
@i386
i386 / hn.css
Created February 14, 2013 00:36
Sylish style to make Hacker News less raw
.title {
font-size: 12pt;
}
.comhead !important {
font-size: 12pt;
}
.topsel a {
color: #ff9913;
73XPYJJ3Y6RE
K7XTHH4XFL3N
LWPNM3JYFMPA
WFLJYT6WWLAP
XPRLNK4RFX7L
@i386
i386 / gist:5516361
Created May 4, 2013 05:46
Build fails on 10.7 when looking for 10.8 only classes
02-May-2013 08:34:54 CompileXIB Optique/OPPhotoViewController.xib
02-May-2013 08:34:54 cd /Users/jdumay/bamboo-home/xml-data/build-dir/WH-OPTIQUE0-JOB1
02-May-2013 08:34:54 setenv XCODE_DEVELOPER_USR_PATH /Applications/Xcode.app/Contents/Developer/usr/bin/..
02-May-2013 08:34:54 /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/jdumay/Library/Developer/Xcode/DerivedData/Optique-gnglnurvvvpakxhfmijylawfsttu/Build/Products/Debug/Optique.app/Contents/Resources/OPPhotoViewController.nib /Users/jdumay/bamboo-home/xml-data/build-dir/WH-OPTIQUE0-JOB1/Optique/OPPhotoViewController.xib --sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
02-May-2013 08:34:56 /* com.apple.ibtool.errors */
02-May-2013 08:34:56 /Users/jdumay/bamboo-home/xml-data/build-dir/WH-OPTIQUE0-JOB1/Optique/OPPhotoViewController.xib: error: Unable to resolve Interface Builder plug-in dependency
//Setup transition on both _visibleLayer and newLayer
CATransition* transition = [CATransition animation];
transition.startProgress = 0;
transition.endProgress = 1.0;
transition.type = kCATransitionPush;
transition.subtype = kCATransitionFromRight;
transition.duration = 0.5;
[layer addAnimation:transition forKey:@"sublayers"];
@i386
i386 / gist:08a4418d630d959ce44b
Created September 12, 2014 00:12
Make iTunes radio actually buffer on crap connections
defaults write com.apple.iTunes stream-buffer-size 128000
@i386
i386 / Recipe - Roast chicken with paprika and lemon.md
Last active November 13, 2017 22:31
Recipe - Roast chicken with paprika and lemon

Roast chicken with paprika and lemon

This is just super fucking delicious. Perfect if you are having one of those evenings at home cooking for a date, family, etc and don't want to look like a hopeless adult.

If you made this and liked it (or it got you dumped, fired, sent to a siberian penal colony, airlocked, etc) let me know on twitter @i386.

If you are making this after 2070: sucked in as I am likely dead and laughing from the grave.

Ingredients