`
Have your creative output co-opted and blandly packaged by faceless corporate middlemen. Suitable for vain, undisciplined, egotistical, obnoxious or temperamental characters.
(defhtml db-list [databases] | |
[:table{:class "table table-bordered table-striped"} | |
[:thead | |
[:tr | |
[:th "Database"] | |
[:th "Collections"] | |
[:th "Storage"] | |
[:th "Allocated"] | |
[:th "Actions"] | |
] |
For each Ruby module/class, we have Ruby methods on the left and the equivalent | |
Clojure functions and/or relevant notes are on the right. | |
For clojure functions, symbols indicate existing method definitions, in the | |
clojure namespace if none is explicitly given. clojure.contrib.*/* functions can | |
be obtained from http://github.com/kevinoneill/clojure-contrib/tree/master, | |
ruby-to-clojure.*/* functions can be obtained from the source files in this | |
gist. | |
If no method symbol is given, we use the following notation: |
// From: https://github.com/christkv/node-mongodb-native | |
// Not picking on the driver itself, it appears to be idiomatic node javascript | |
// Custom factory (need to provide a 12 byte array); | |
CustomPKFactory = function() {} | |
CustomPKFactory.prototype = new Object(); | |
CustomPKFactory.createPk = function() { | |
return new ObjectID("aaaaaaaaaaaa"); | |
} |
/* | |
Ideas for light-weight node middleware functions | |
Riffing on ideas for weaving functions together in a middleware architecture for node. | |
Overview: | |
a function that returns a rack-style array of status, headers and body | |
Function Requirements: | |
access to the environment (essentially the raw node request and response objects) |
After updating Haskell GHC to Version 7.0.4, wai-handler-devel stopped working, responding with "command not found"
The fix is to add the correct path ($HOME/Library/Haskell/bin) to your .bash_profile
export PATH="$HOME/Library/Haskell/bin;$PATH"
Change one line | |
Run compile task | |
Run jar task | |
Run run task | |
Test | |
**** | |
Still doesn't work | |
Change one line | |
Goto 0 |
In .bash_profile (or what have you)
function rserve () {
ruby -rwebrick -e"s = WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start"
}
# Update RVM (the ruby version manager)
rvm get latest
# From the project directory
# RVM may ask you if the settings are ok, they are
gem install bundler
bundle install
bundle exec rake db:create db:migrate db:seed