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
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
brew update | |
brew install coreutils | |
brew install findutils | |
brew install bash |
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 { | |
font-size: 16px; | |
padding: 0; | |
margin: 0; | |
} | |
ul, li { | |
list-style: none; | |
margin:0; | |
padding: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
public class CheckedItemData { | |
SparseBooleanArray mCheckedItemStates = new SparseBooleanArray(); | |
LinkedList<Rule> mRules = new LinkedList<Rule>(); | |
public void addRule(Rule rule) { | |
mRules.add(rule); | |
} | |
public int getCount() { |
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
def start(limit: Int) { | |
1 to limit foreach { | |
x => val c = x.toString count ("369" contains _) | |
println ( if (c > 0) "clap! " * c ; else x ) | |
} | |
} |
NewerOlder