Skip to content

Instantly share code, notes, and snippets.

View i386's full-sized avatar

James William Dumay i386

View GitHub Profile
73XPYJJ3Y6RE
K7XTHH4XFL3N
LWPNM3JYFMPA
WFLJYT6WWLAP
XPRLNK4RFX7L
@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;
@i386
i386 / gist:4054064
Created November 11, 2012 07:23
model
@interface DSValue : NSObject
@property (strong) NSString *displayValue;
-initWithDisplayValue:(NSString*)value;
@end
@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 / 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);
#!/bin/sh
## Dont forget to `chmod +x phpunit`
echo "Not the real phpunit"
exit -1
@i386
i386 / gist:3154134
Created July 21, 2012 01:17
gstreamer patch
diff --git a/configure b/configure
index 0af896d..20e6576 100755
--- a/configure
+++ b/configure
@@ -21304,7 +21304,7 @@ fi
fi
flex_min_version=2.5.31
- flex_version=`$FLEX_PATH --version | head -n 1 | sed 's/^.* //' | sed 's/[a-zA-Z]*$//' | cut -d' ' -f1`
+ flex_version=`$FLEX_PATH --version | head -n 1 | awk '{print $2'}`
@i386
i386 / brew doctor
Created July 20, 2012 23:39
brew doctor
north:src jdumay$ brew doctor
Error: The following libiconv files were detected in /Users/jdumay/software/homebrew:
include/iconv.h
Homebrew doesn't provide a libiconv formula, and expects to link against
the system version in /usr/lib.
If you have an alternate libiconv, many formulae will fail to compile or
link, especially if it wasn't compiled with the proper architectures.
Error: You have unlinked kegs in your Cellar
@i386
i386 / brew --config
Created July 20, 2012 23:38
brew --config
north:src jdumay$ brew --config
HOMEBREW_VERSION: 0.9.2
HEAD: 0dc47019699f595e8437143a9b82914a9ae53cee
HOMEBREW_PREFIX: /Users/jdumay/software/homebrew
HOMEBREW_CELLAR: /Users/jdumay/software/homebrew/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.8-x86_64
Xcode: 4.4 => /Applications/Xcode44-DP7.app/Contents/Developer
CLT: 4.4.0.0.1.1249367152
GCC-4.0: N/A
@i386
i386 / brew install -v gstreamer
Created July 20, 2012 23:37
brew install -v gstreamer
==> Downloading http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-0.10.36.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gstreamer-0.10.36.tar.bz2
/usr/bin/tar xf /Library/Caches/Homebrew/gstreamer-0.10.36.tar.bz2
==> ./configure --prefix=/Users/jdumay/software/homebrew/Cellar/gstreamer/0.10.36 --disable-debug --disable-dependency-tracking --enable-introspection=no
./configure --prefix=/Users/jdumay/software/homebrew/Cellar/gstreamer/0.10.36 --disable-debug --disable-dependency-tracking --enable-introspection=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no