Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| ## Prepare ################################################################### | |
| # Remove RVM | |
| rvm implode | |
| # Ensure your homebrew is working properly and up to date | |
| brew doctor | |
| brew update | |
| ## Install ################################################################### |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| // Add this file to ~/.sbt/plugins/plugins.sbt. | |
| // | |
| // Once this is ready, make sure you have sbt 0.12 ("brew install sbt" should do it), | |
| // then try running | |
| // | |
| // sbt "ensime generate" | |
| // | |
| // in bijection's root directory. ("git clone git@github.com:twitter/bijection.git") | |
| resolvers += "Scala-Tools Maven2 Snapshots Repository" at "http://scala-tools.org/repo-snapshots" |
| // Project Euler problem 2 | |
| function makeFibSequence(a, b) { | |
| // or ... | |
| // var a = 0; | |
| // var b = 1; | |
| return function () { | |
| var next = a + b; | |
| a = b; | |
| b = next; | |
| return next; |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>CFBundleDevelopmentRegion</key> | |
| <string>English</string> | |
| <key>CFBundleDocumentTypes</key> | |
| <array> | |
| <dict> |
$ uname -r
| import java.util.UUID | |
| // given this machinery | |
| trait Translator[-I, +O] { | |
| def translate(i: I): O | |
| } | |
| object TypeProjector { | |
| implicit class Translatable[T](i: T) { | |
| def project[U](implicit translator: Translator[T, U]): U = translator.translate(i) |