Skip to content

Instantly share code, notes, and snippets.

View zbowling's full-sized avatar
🌐
Working from everywhere

Zac Bowling zbowling

🌐
Working from everywhere
View GitHub Profile
@zbowling
zbowling / Adblock opitons.md
Created January 18, 2012 05:57
Un-blackout Wikipedia methods

#Un-blackout Wikipedia methods.

I'm totally with Wikipedia and support them blacking out the site. These methods work for the technical people out there that still/want access. I hope you use these methods only after contacting congress to help fight SOPA and PIPA.

##AdBlock and NoScript method

Add this option to your AdBlock or NoScript settings. In Google Chrome, you can add a javascript exception in your preferences for this URL as well.

|http://meta.wikimedia.org/w/index.php?title=Special:BannerLoader&banner=blackout&campaign=English+Wikipedia+Blackout*
@zbowling
zbowling / gist:1432571
Created December 5, 2011 06:36
SMMangedObject meta
//Automagic default implementation
- (NSString *)JSONKeyForObjectKeyPath:(NSString *)keyPath {
//Anything in the model for an override?
NSAttributeDescription *attribute = [self.entity.attributesByName objectForKey:keyPath];
NSString *jsonKey = [[attribute userInfo] objectForKey:@"JSONKey"];
if (jsonKey)
return jsonKey;
if ([keyPath isEqualToString:@"uuid"])
diff -r 2bb1725914b1 ISO8601DateFormatter.m
--- a/ISO8601DateFormatter.m Sat Oct 15 16:40:07 2011 -0700
+++ b/ISO8601DateFormatter.m Sun Nov 13 17:26:40 2011 -0800
@@ -557,7 +557,7 @@
NSNumber *offsetNum = [NSNumber numberWithDouble:timeZoneOffset];
timeZone = [timeZonesByOffset objectForKey:offsetNum];
if (!timeZone) {
- timeZone = [NSTimeZone timeZoneForSecondsFromGMT:timeZoneOffset];
+ timeZone = [NSTimeZone timeZoneForSecondsFromGMT:(NSInteger)timeZoneOffset];
if (timeZone)
#!/bin/bash
for i in `seq 1 100`;
do
growlnotify -m $i &
done
-(UIImage*)image:(UIImage*)image scaleAndRotateImageToMaxResolution:(int)resolution
{
int kMaxResolution = resolution; // Or whatever
CGImageRef imgRef = image.CGImage;
CGFloat width = CGImageGetWidth(imgRef);
CGFloat height = CGImageGetHeight(imgRef);
@@ -4018,7 +4012,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 315C88BB1068F9A200880530 /* Localization.xcconfig */;
buildSettings = {
- CODE_SIGN_IDENTITY = "3rd Party Mac Developer Application: The Growl Project, LLC";
+ CODE_SIGN_IDENTITY = "3rd Party Mac Developer Application";
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_ENABLE_OBJC_GC = unsupported;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -4791,7 +4785,7 @@
dieMap = ['A','B','C','D','E','F']
class BuddhaGame
constructor: (@robot,@player) ->
@diceLeft = 6
@diceTaken = []
@lastDice = []
@gameover = no
ubuntu@ec2-107-22-9-45.compute-1.amazonaws.com
@zbowling
zbowling / zerocater-campy-output.txt
Created September 25, 2011 23:10
zerocater-campy-output
This Week
Monday, Sep 19 @ 11:30a.m. - Sausages — Rosamunde for 10 people
* 5 Beer Sausage
smoked, spicy pork & beef
* 5 Weisswurst
veal, onion & leek
* 2 Vegan Smoked Apple Sage
* 4 Mixed Green Salad
* 4 German Potato Salad
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GnuTLS configure 2.12.11, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --disable-guile --disable-static --prefix=/usr/local/Cellar/gnutls/2.12.11 --with-libgcrypt
## --------- ##
## Platform. ##