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 Person { | |
// final fields can be public, no more getter bullshit | |
public final String name; | |
public final String sex; | |
public final int age; | |
... | |
// private constructor to be used by Builder only, constructor inject everything in one go and never modify. |
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
[color] | |
branch = auto | |
diff = auto | |
interactive = auto | |
status = auto | |
[user] | |
name = [...] | |
email = [...] | |
[github] | |
user = [...] |
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
# brew install bash_completion for this to work ... | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
# add current git branch to prompt | |
PS1='\h:\w\[\033[32m\]$(__git_ps1) \[\033[0m\]$ ' |
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
# bash function for opening files in jedit (http://www.jedit.org/) from the command line | |
# copy the line below in your .profile or .bashrc | |
# the nohup can be used to avoid closing the editor when you close the terminal window from which you launch | |
function jedit() { nohup java -Xms15M -jar /Applications/jEdit.app/Contents/Resources/Java/jedit.jar -reuseview "$@" > /dev/null 2> /dev/null &} | |
NewerOlder