This file contains 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
xcrun simctl list devices | sed -n '/-- iOS 7.1/,/--/p'| grep -v '^[-=]' | cut -d "(" -f2 | cut -d ")" -f1 | xargs -I {} xcrun simctl delete "{}" |
This file contains 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 push upstream local-name:remote-name |
This file contains 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
const Y = (f) => { | |
const g = (h) => { | |
return (x) => { | |
return f(h(h))(x); | |
}; | |
}; | |
return g(g); | |
}; |
This file contains 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
const Y = (fn) => { | |
return (x) => { | |
return fn(Y(fn))(x); | |
}; | |
}; |
This file contains 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
const fac = (recurse) => { | |
return function(x) { | |
return x === 0 ? 1 : x * recurse(x-1); | |
}; | |
}; |
This file contains 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
readFilesFromDirectory :: IO [([Char], [([Char], Int)])] | |
readFilesFromDirectory = do | |
allFiles <- getDirectoryContents "docs" | |
let filtered = filter (endswith ".htm") allFiles | |
--listOfTuplesWithFileContent <- readingFiles filtered | |
listOfTuplesWithFileContent <- combingReadFiles $ readingFilesInParallel filtered | |
return listOfTuplesWithFileContent | |
stripTags :: String -> String |
This file contains 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
Add this ppa other ones dint work from me | |
sudo apt-add-repository "deb http://ppa.launchpad.net/hvr/ghc/ubuntu precise main" | |
sudo apt-update | |
sudo apt-get install ghc-7.8.1 | |
export PATH=/opt/ghc/7.8.1/bin:$PATH | |