Skip to content

Instantly share code, notes, and snippets.

View zbowling's full-sized avatar
🌍
Mobile

Zac Bowling zbowling

🌍
Mobile
View GitHub Profile
dieMap = ['A','B','C','D','E','F']
class BuddhaGame
constructor: (@robot,@player) ->
@diceLeft = 6
@diceTaken = []
@lastDice = []
@gameover = no
@@ -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 @@
-(UIImage*)image:(UIImage*)image scaleAndRotateImageToMaxResolution:(int)resolution
{
int kMaxResolution = resolution; // Or whatever
CGImageRef imgRef = image.CGImage;
CGFloat width = CGImageGetWidth(imgRef);
CGFloat height = CGImageGetHeight(imgRef);
#!/bin/bash
for i in `seq 1 100`;
do
growlnotify -m $i &
done
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)
@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"])
@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*
//
// SMOperationQueueOperation.m
// DorsiaFoundation
//
// Created by Zac Bowling on 4/4/12.
// Copyright (c) 2012 SeatMe, Inc. All rights reserved.
//
#import "SMOperationQueueOperation.h"
@zbowling
zbowling / gist:2356293
Created April 11, 2012 01:48
WWDC dates
Year Days Announcement Day Start of WWDC Venue
2012 ?? ????????? ??? 11-Jun-12??? Moscone West
2011 70 28-Mar-11 Mon 06-Jun-11 Moscone West
2010 40 28-Apr-10 Wed 07-Jun-10 Moscone West
2009 74 26-Mar-09 Thu 08-Jun-09 Moscone West
2008 88 13-Mar-08 Thu 09-Jun-08 Moscone West
2007 126 05-Feb-07 Mon 11-Jun-07 Moscone West
2006 153 07-Mar-06 Tue 07-Aug-06 Moscone West
2005 111 15-Feb-05 Tue 06-Jun-05 Moscone West
2004 123 26-Feb-04 Thu 28-Jun-04 Moscone West