Script:
cd ${SRCROOT}
if [ -e "Pods" ]
then
pod install
else
touch Pods
ubuntu@ip-10-226-175-124:~$ sudo jpm install greenballs ansicolor | |
Loading plugin repository data... | |
Installing greenballs v1.14 ... | |
Installing ansicolor v0.3.1 ... | |
Green Balls v1.14, AnsiColor Plugin v0.3.1 will be loaded on the next restart of Jenkins! | |
ubuntu@ip-10-226-175-124:~$ sudo jpm install git-client | |
Loading plugin repository data... |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
// Download all assets from https://developer.apple.com/wwdc/videos | |
// Warning: might take up a lot of disk space | |
NodeList.prototype.toArray = function () { | |
return Array.prototype.slice.call(this); | |
}; | |
[].concat.apply([], document.querySelectorAll("li.session").toArray().map(function(session){ | |
var sessionID = session.id.match(/^\d+/)[0]; | |
var title = session.querySelector(".title").innerText; |
######################### | |
# .gitignore file for Xcode4 and Xcode5 Source projects | |
# | |
# Apple bugs, waiting for Apple to fix/respond: | |
# | |
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
# | |
# Version 2.6 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# |
Enable ‘Run’ in the ‘Build’ section of your test bundle’s scheme. (See http://www.raingrove.com/2012/03/28/running-ocunit-and-specta-tests-from-command-line.html)
$ gem install kicker open4 colored xcodebuild-rb
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
def hidden_div_if(condition, attributes = {}, &block) | |
if condition | |
attributes["style"] = "display: none" | |
end | |
content_tag("div", attributes, &block) end | |
end |
// [image writeToFile:[NSURL fileURLWithPath:@"/some/path/image.png"]]; | |
- (void)writeToFile:(NSURL *)fileURL | |
{ | |
NSBitmapImageRep *bitmapRep = nil; | |
for (NSImageRep *imageRep in [self representations]) | |
{ | |
if ([imageRep isKindOfClass:[NSBitmapImageRep class]]) | |
{ | |
bitmapRep = (NSBitmapImageRep *)imageRep; |
- (void)loadDefaultSettings | |
{ | |
NSMutableDictionary *defaults = [NSMutableDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Default-Settings" ofType:@"plist"]]; | |
// other setup... | |
[[NSUserDefaults standardUserDefaults] registerDefaults:[NSDictionary dictionaryWithDictionary:defaults]]; | |
} | |
- (void)resetDefaultSettings |