http://tdd-workshop.uikonf.com
Twitter hashtag #tddberlin
Mobile Central Europe Conference in Warsaw in Feb 2015
#!/usr/bin/env ruby | |
ARGV.each do|a| | |
puts "#{a}".split("").shuffle.join | |
end |
data Fizzbuzz = FizzBuzz | |
| Fizz | |
| Buzz | |
deriving Show | |
fizzbuzz :: [Integer] -> String | |
fizzbuzz x = unlines (map fizzbuzzline x) | |
fizzbuzzline :: Integer -> String | |
fizzbuzzline x = fizzBuzzToString x (fizzBuzzFromNum x) |
#import <Foundation/Foundation.h> | |
@interface HRSTDIOReadWriter : NSObject | |
@end | |
@implementation HRSTDIOReadWriter | |
+(NSString*) readFromSTDIN | |
{ | |
NSFileHandle *kbd = [NSFileHandle fileHandleWithStandardInput]; |
Dir.foreach("/usr/local/Cellar/cowsay/3.03/share/cows") {|cow| puts cow; system "fortune | cowsay -f /usr/local/Cellar/cowsay/3.03/share/cows/#{cow}" } |
find Resources/Localizable.strings -name "*.strings" -type f -exec gsed -i 's/\\\\\"%@\\\\\"/\\\"%@\\\"/g' {} ";" -exec plutil -lint {} ";" | |
# needs gnu-sed to be installed for -i parameter |
http://tdd-workshop.uikonf.com
Twitter hashtag #tddberlin
Mobile Central Europe Conference in Warsaw in Feb 2015
# run with | |
# ruby reallyCleanXcode.rb | |
derivedDataFolder = Dir.glob(Dir.home + "/Library/Developer/Xcode/DerivedData/*") | |
moduleCache = Dir.glob("/var/folders/**/com.apple.DeveloperTools*") | |
FileUtils.rm_rf derivedDataFolder + moduleCache | |
# replace mate with editor of your choice | |
alias releasenotes="git log --oneline --no-merges `git describe --abbrev=0 --tags`..HEAD | cut -c 9- | sort | mate" |
#!/bin/sh | |
echo "searching for updates..." | |
brewoutput=`brew update` | |
if [ "$brewoutput" == "Already up-to-date." ] | |
then | |
echo "nothing to update" | |
else | |
echo "updating..." | |
brewoutput=`brew upgrade --all` | |
if [[ "$brewoutput" == *".app bundles were installed."* ]] |