Requires:
-
Homebrew (http://mxcl.github.io/homebrew/)
-
Ruby
Verify Homebrew is not sick:
brew doctor
| <script type="text/ng-template" id="one.html"> | |
| <div>This is first template</div> | |
| </script> | |
| <script type="text/ng-template" id="two.html"> | |
| <div>This is second template</div> | |
| </script> |
| namespace aspapi.Controllers | |
| { | |
| public class TaskApiController : ApiController | |
| { | |
| private readonly ITaskRepository taskRepository; | |
| public TaskApiController() | |
| { | |
| taskRepository = new TaskRepository(); | |
| } |
| // Copyright (c) 2012 Daniel Grunwald | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
| // software and associated documentation files (the "Software"), to deal in the Software | |
| // without restriction, including without limitation the rights to use, copy, modify, merge, | |
| // publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
| // to whom the Software is furnished to do so, subject to the following conditions: | |
| // | |
| // The above copyright notice and this permission notice shall be included in all copies or | |
| // substantial portions of the Software. |
| // suggested shell cmd line to run this: | |
| // | |
| // mongo --shell example2.js | |
| // | |
| // Note: the { out : … } parameter is for mongodb 1.8+ | |
| db.things.insert( { _id : 1, tags : ['dog', 'cat'] } ); | |
| db.things.insert( { _id : 2, tags : ['cat'] } ); | |
| db.things.insert( { _id : 3, tags : ['mouse', 'cat', 'dog'] } ); | |
| db.things.insert( { _id : 4, tags : [] } ); |
Requires:
Homebrew (http://mxcl.github.io/homebrew/)
Ruby
Verify Homebrew is not sick:
brew doctor
The whole install procedure is like the following.
You would have to do 7 steps.
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| ;; Performance of with-local-vars vs. atom vs. volatile vs. unsynchronized-mutable field. | |
| (definterface IOObject | |
| (setVal [new-val]) | |
| (getVal []) | |
| (oswap [f]) | |
| (oswap [f x]) | |
| (oswap [f x y]) | |
| (oswap [f x y z])) |
| ;; www.Quanto.ga | |
| ;; | |
| ;; cp/upmap is from https://github.com/TheClimateCorporation/claypoole | |
| quantataraxia.core> (do | |
| (println "MAP:") | |
| (println (time (doall (map (fn [x] (Thread/sleep x) x) | |
| (range 500 50 -9))))) | |
| (println "PMAP:") |