Skip to content

Instantly share code, notes, and snippets.

View koenbok's full-sized avatar

Koen Bok koenbok

View GitHub Profile

Creating a layer

layer = new Layer
  width: 100
  height: 100

Animating a layer

anonymous
anonymous / btc_hue.markdown
Created December 2, 2013 05:39
BTC Philip's Hue Over/Under Colors

#BTC Ticker Light This script updates one of your Philip's Hue lights to be either red or green depending on if the current price of bitcoin is below or above the 24 hour weighted price.

The light

##Install Dependencies
easy_install install beautifulhue

##The Script
Save this to a python file after customizing your Philip's Hue Bridge ip, username, and light_id.

@ishaq
ishaq / KUtils.h
Last active October 11, 2019 22:15 — forked from jpwatts/xcode-git-version.sh
This Xcode build phase script automatically sets the version and short version string of an application bundle based on information from the containing Git repository. To Use it, you 1) add the contents of `xcode-git-version.sh` to a "Run Script" build phase for your application target. 2) add a new value to your info plist called `FullVersion` …
#import <Foundation/Foundation.h>
@interface KUtils : NSObject
+ (NSString *)getVersionInfo;
@end
@koenbok
koenbok / Android Review
Created March 29, 2011 09:05
Reviewing a Nexus S by a guy who is used to an iPhone 4
PLUS
- You never have to attach it to the computer, not even for software upgrades
- Call quality and reception is sometimes better then my iPhone
- The dashboard or home is really nice with widgets and shortcuts (like wifi settings)
- Regular mini USB cable, although iPod cables are pretty common now too
- I don't really feel like I miss any apps, and most standard apps are done very nicely
- Some stuff is really smart like having a 2 second delay for locking after the screen dims down
- Most of the time it feels pretty fast
- I feel like I have more insight in the device (which is good because I'm geeky)