This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
startdirectory="/Users/jamesnesfield/Desktop/replaceTest/" | |
searchterm="foo" | |
replaceterm="bar" | |
i=0 | |
IFS=$'\n'; | |
for file in $( grep -l -R $searchterm $startdirectory) | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 0; | |
padding: 0; | |
background: #191f27; | |
} | |
.container { | |
width: 200px; | |
height: 100px; | |
padding-top: 100px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.css' rel='stylesheet' /> | |
<style> | |
body { margin:0; padding:0; } | |
#map { position:absolute; top:0; bottom:0; width:100%; } | |
</style> | |
<body> | |
<div id='map'></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="https://github.com/jamesnesfield/lineofsite"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub"></a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map data ©2014 Google | |
Terms of Use | |
Visual refresh | |
Report a map error | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://stackoverflow.com/questions/15757872/manually-color-fading-from-one-uicolor-to-another | |
- (UIColor *)colorFromColor:(UIColor *)fromColor toColor:(UIColor *)toColor amount:(float)amount // 0 < amount < 1 | |
{ | |
float dec = amount; | |
CGFloat fRed, fBlue, fGreen, fAlpha; | |
CGFloat tRed, tBlue, tGreen, tAlpha; | |
CGFloat red, green, blue, alpha; | |
if(CGColorGetNumberOfComponents(fromColor.CGColor) == 2) { | |
[fromColor getWhite:&fRed alpha:&fAlpha]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define IS_IPHONE5 (([[UIScreen mainScreen] bounds].size.height-568)?NO:YES) | |
#define IS_OS_5_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 5.0) | |
#define IS_OS_6_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0) | |
#define IS_OS_7_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//from Urban Airship iOS SDK "1.1.2" | |
#define SINGLETON_INTERFACE(CLASSNAME) \ | |
+ (CLASSNAME*)shared; \ | |
#define SINGLETON_IMPLEMENTATION(CLASSNAME) \ | |
\ | |
static CLASSNAME* g_shared##CLASSNAME = nil; \ | |
\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* place in pch | |
from http://stackoverflow.com/questions/9621143/debuglog-format-string-is-not-a-string-literal | |
*/ | |
#ifdef DEBUG | |
#define DebugLog(s, ...) NSLog(s, ##__VA_ARGS__) | |
#else | |
#define DebugLog(s, ...) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git submodule update --init --recursive |
OlderNewer