http://tdd-workshop.uikonf.com
Twitter hashtag #tddberlin
Mobile Central Europe Conference in Warsaw in Feb 2015
| #!/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."* ]] |
| # 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" |
| # 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 | |
http://tdd-workshop.uikonf.com
Twitter hashtag #tddberlin
Mobile Central Europe Conference in Warsaw in Feb 2015
| 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 |
| 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}" } |
| #import <Foundation/Foundation.h> | |
| @interface HRSTDIOReadWriter : NSObject | |
| @end | |
| @implementation HRSTDIOReadWriter | |
| +(NSString*) readFromSTDIN | |
| { | |
| NSFileHandle *kbd = [NSFileHandle fileHandleWithStandardInput]; |
| 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) |
| #!/usr/bin/env ruby | |
| ARGV.each do|a| | |
| puts "#{a}".split("").shuffle.join | |
| end |
| display dialog "Desktop icons visible or hidden?" buttons {"Visible", "Hidden"} with icon 2 with title "Switch to presentation mode" default button 1 | |
| set switch to button returned of result | |
| if switch is "Hidden" then | |
| do shell script "defaults write com.apple.finder CreateDesktop -bool FALSE;killall Finder" | |
| else | |
| do shell script "defaults delete com.apple.finder CreateDesktop;killall Finder" | |
| end if |