Capturing my notes about setting up an Oracle 10g XE / Rails environment for development work. Tested using the following versions, others may work as well:
- Ubuntu 11.04
- Ruby 1.9.2
- Rails 3
- Oracle 10 XE
| # 30 minutes Lisp in Ruby | |
| # Hong Minhee <http://dahlia.kr/> | |
| # | |
| # This Lisp implementation does not provide a s-expression reader. | |
| # Instead, it uses Ruby syntax like following code: | |
| # | |
| # [:def, :factorial, | |
| # [:lambda, [:n], | |
| # [:if, [:"=", :n, 1], | |
| # 1, |
| Install pg gem on Snow Leopard for PostgreSQL 9. | |
| Run the following commands. | |
| sudo port install postgresql90-server -universal | |
| gem install pg -- --with-pg-config=/opt/local/lib/postgresql90/bin/pg_config |
This gist is a fork of the gist from this blog post.
| module type Stack = | |
| sig | |
| type 'a t | |
| val empty : 'a t | |
| val isEmpty : 'a t -> bool | |
| val cons : 'a -> 'a t -> 'a t | |
| val head : 'a t -> 'a | |
| val tail : 'a t -> 'a t | |
| end |
| ``` | |
| ___ | |
| | | | |
| | | | |
| ------------------- | |
| ------------------- | |
| | ___ | ___ | | |
| | | | | | | | | | | |
| | |-+-| | |-+-| | | |
| | |_|_| | |_|_| | |
| > cat ~/.sbt/0.13/plugins/plugins.sbt | |
| resolvers += Resolver.sonatypeRepo("snapshots") | |
| addSbtPlugin("org.ensime" % "ensime-sbt" % "0.1.5-SNAPSHOT") | |
| > sbt gen-ensime | |
| [info] Loading global plugins from /Users/tim/.sbt/0.13/plugins | |
| [info] Loading project definition from /Users/tim/code/scala/introduction-to-fp-in-scala/project | |
| [info] Set current project to introduction-to-fp-in-scala (in build file:/Users/tim/code/scala/introduction-to-fp-in-scala/) | |
| [error] Not a valid command: gen-ensime |