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
| # Google Chrome update check was broken on my Mac | |
| # After poking around, I did this: | |
| $ cd /Applications/Google Chrome.app/Contents/Versions/14.0.835.163/Google Chrome Framework.framework/Frameworks/KeystoneRegistration.framework/Resources | |
| $ ./install.py --uninstall | |
| $ sudo ./install.py --uninstall | |
| # ...and then everything seemed OK after a Chrome restart |
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
| // With Boolean as a return type you get nice compose-ability semantics. | |
| // With Unit (void for Java) return type, you only get ugly if()s. | |
| trait Logger { | |
| def isDebugEnabled: Boolean | |
| def isInfoEnabled: Boolean | |
| def debug(...): Boolean | |
| def info(...): Boolean | |
| } |
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
| object Comment { | |
| def comment[T](t: => T): Unit = {} | |
| } | |
| // Usage | |
| comment { | |
| List(1, 2, 3).map(_ * 2) | |
| } |
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
| for file in `locate .git|grep -e '/.git$'`; do | |
| folder=${file%/.git} | |
| echo $folder && pushd "$folder" && git repack -ad && popd | |
| done |
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
| cst|awk '{print $2}' | xargs -I FFF /usr/local/bin/gcp --parents -av FFF ~/tmp |
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
| (* My first Ocaml program ever *) | |
| (* *) | |
| (* @author Christos KK Loverdos *) | |
| (* 2012-02 *) | |
| open Str | |
| open Unix | |
| let (|>) x f = f x |
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
| (* My second Ocaml program ever *) | |
| (* *) | |
| (* @author Christos KK Loverdos *) | |
| open Str | |
| (* Version 1 *) | |
| (* ========= *) | |
| (* let () = *) | |
| (* let colon_re = Str.regexp ":" *) |
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
| curl -s http://www.google.com/finance/converter\?a\=1\&from\=USD\&to\=EUR | sed '/res/!d;s/<[^>]*>//g' |
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
| retrieveManaged := true |
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
| java -Dapple.laf.useScreenMenuBar=true -Dcom.apple.mrj.application.apple.menu.about.name="App Name" -jar theJar.jar |