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
| # mongo_template.rb | |
| # remove unneeded defaults | |
| run "rm public/index.html" | |
| run "rm public/images/rails.png" | |
| run "rm public/javascripts/controls.js" | |
| run "rm public/javascripts/dragdrop.js" | |
| run "rm public/javascripts/effects.js" | |
| run "rm public/javascripts/prototype.js" |
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
| App = SC.Application.create( | |
| /** @scope Chase.prototype */ { | |
| NAMESPACE: 'App', | |
| VERSION: '0.1.0', | |
| // This is your application store. You will use this store to access all | |
| // of your model data. You can also set a data source on this store to | |
| // connect to a backend server. The default setup below connects the store | |
| // to any fixtures you define. |
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
| /* in main */ | |
| MyApp.userDefaults.defaults({ | |
| "MyApp:searches": [ | |
| {'query': 'Foo', 'count': 99} | |
| ,{'query': 'Bar', 'count': 0} | |
| ] | |
| } | |
| }); |
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
| {"error":"{bad_return_value,{os_process_error,{exit_status,2}}}","reason":"{gen_server,call,\n [<0.1904.0>,\n {execute,{[{<<\"info\">>,\n {[{db_name,<<\"cosby\">>},\n {doc_count,12949},\n {doc_del_count,1},\n {update_seq,12967},\n {purge_seq,0},\n {compact_running,false},\n {disk_size,302747754},\n {instance_start_time,<<\"1290208132649900\">>},\n {disk_format_version,5},\n {committed_update_seq,12967}]}},\n {<<\"id\">>,null},\n {<<\"uuid\">>,<<\"3d97017e932f7e6e4518dc4b52002a9b\">>},\n {<<\"method\">>,'GET'},\n {<<\"path\">>,[<<\"cosby\">>,<<\"_fti\">>,<<\"_cleanup\">>]},\n {<<\"query\">>,{[]}},\n |
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
| MyApp.List = SC.Record.extend({ | |
| name: SC.Record.attr(String) | |
| ,itemKeys: SC.Record.attr(Array) | |
| ,primaryKey: 'key' | |
| ,addItems: function(items){ | |
| var refs = this.get('itemKeys') || new Array, | |
| keys = items.getEach('key'); |
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
| 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 http://npmjs.org/install.sh | sh |
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
| 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 http://npmjs.org/install.sh | sh |
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
| class MyClass | |
| def initialize | |
| @something = true | |
| end | |
| def main | |
| # RUN code | |
| end |
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
| // http://localhost:5984/addressbook/_design/person/_list/csv/all | |
| // http://localhost:5984/addressbook/_design/person/_list/csv/by_name?reduce=false | |
| function(head, req) { | |
| // log(req) | |
| var viewname = req.path.pop() | |
| var filename = req.info.db_name+'-'+viewname+'.csv' |
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
| var Job = { | |
| data : [ | |
| "We are glad to see you here. This site is dedicated to", | |
| "poetry and to the people who make poetry possible", | |
| "poets and their readers. FamousPoetsAndPoems.com is", | |
| "a free poetry site. On our site you can find a large", | |
| "collection of poems and quotes from over 631 poets", | |
| "Read and Enjoy Poetry", | |
| "I, too, sing America", |