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
class FiniteCardinality { | |
constructor (initialValue=0) { | |
this.value = 0; | |
} | |
increaseBy(val) { | |
this.value += Number(val); | |
} | |
} | |
class InfiniteCardinality { |
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
# read: https://bit-booster.com/doing-git-wrong/2017/01/02/git-init-empty/ | |
git init new-repo | |
cd new-repo | |
git commit -m 'initial empty commit' --allow-empty | |
git tag init |
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
#!/bin/bash | |
randomword=`rl -c 1 /usr/share/dict/words` | |
branchname=anton_${randomword} | |
git checkout -b ${branchname} |