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
| val javaRuntimeOptions = Seq( | |
| "-Xmx2048M", | |
| "-XX:+UseConcMarkSweepGC", | |
| "-XX:+CMSClassUnloadingEnabled", | |
| "-XX:MaxPermSize=512M", | |
| "-Xshare:off", | |
| "-Dcom.sun.management.jmxremote.port=9998", | |
| "-Dcom.sun.management.jmxremote.authenticate=false", | |
| "-Dcom.sun.management.jmxremote.ssl=false", | |
| "-Djava.rmi.server.hostname=%s".format(hostname), |
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
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
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
| # I always forget you can install homebrew formulas using direct URLs | |
| brew install https://raw.github.com/adamv/homebrew-alt/master/unmaintained/htop.rb |
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
| (defun make-quick-haskell-frame () | |
| "Creates a new frame running haskell-mode." | |
| (make-frame '((name . "Quick Haskell") | |
| (width . 120) | |
| (height . 40))) | |
| (select-frame-by-name "Quick Haskell") | |
| (switch-to-buffer "Haskell") | |
| (haskell-mode)) |
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
| // initial version | |
| import scala.collection.immutable.TreeSet | |
| class TreeMember[A] { | |
| // some really important stuff here, of course! ;~) | |
| } | |
| class Main { | |
| implicit val treeOrder = new Ordering[TreeMember[A]] { | |
| def compare(a: TreeMember[A], b: TreeMember[A]) = { | |
| // elided for simplicity's sake | |
| } |
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
| class Sub extends Super { | |
| @Override | |
| public void foo(java.util.Map<Object,Object> bar) {} | |
| } |
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
| # transform a java property file into valid shell variables | |
| awk 'BEGIN{FS=OFS="="}{gsub(/\#.*/,"")}{gsub(/\./,"_",$1)}{sub(/..*/,"\"&\"",$2)}1' $1 |
NewerOlder