This file contains 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 app = require('app') | |
var assert = require('assert') | |
var db = app.db; | |
var get_state = function() { | |
db.get('_state', function(err,doc) { | |
if(err) { |
This file contains 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 app = require('app') | |
var assert = require('assert') | |
var db = app.db; | |
var get_state = function(cb) { | |
db.get('_state', function(err,doc) { | |
if(err) { |
This file contains 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 app = require('app') | |
var assert = require('assert') | |
var db = app.db; | |
var get_state = function(cb) { | |
db.get('_state', function(err,doc) { | |
if(err) { |
This file contains 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 vows = require('vows'); | |
var assert = require('assert'); | |
var app = require('app'), | |
db = app.db; | |
var inter = inter; | |
var http = require('http'); | |
var sys = require('sys'); | |
var _ = require('underscore'); | |
var request = require('request'); | |
var path = require('path'); |
This file contains 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
$ rspec | |
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on o | |
r after 2011-11-01. | |
Gem.source_index called from /home/michat/.rvm/gems/ruby-1.9.2-p318@bagel/gems/r | |
ails-2.3.14/lib/rails/gem_dependency.rb:21. | |
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on o | |
r after 2011-11-01. | |
Gem.source_index called from /home/michat/.rvm/gems/ruby-1.9.2-p318@bagel/gems/r |
This file contains 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
haml (3.1.5) lib/haml/helpers/action_view_mods.rb:93:in `capture_with_haml' | |
config/initializers/display_helper.rb:16:in `display_for' | |
app/views/duties/_show.html.haml:1:in `_app_views_duties__show_html_haml__160992557_80864300' | |
actionpack (3.2.3) lib/action_view/template.rb:143:in `block in render' | |
activesupport (3.2.3) lib/active_support/notifications.rb:125:in `instrument' | |
actionpack (3.2.3) lib/action_view/template.rb:141:in `render' | |
actionpack (3.2.3) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial' | |
actionpack (3.2.3) lib/action_view/renderer/partial_renderer.rb:238:in `block in render' | |
actionpack (3.2.3) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' | |
activesupport (3.2.3) lib/active_support/notifications.rb:123:in `block in instrument' |
This file contains 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
# Case 1 | |
def append_index(idx=0, ids=[]): | |
ids.append(idx) | |
print(idx) | |
print(ids) | |
append_index(idx=1) | |
append_index(idx=2) | |