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
# copy this file to local_settings.py and modify as necessary | |
DATABASE_SCHEMA = 'fbsec' | |
DATABASE_PASSWORD = '' | |
DATABASE_LOGIN = 'root' | |
DATABASE_SERVER = 'localhost' | |
# fetched from user_data in production | |
#DATABASE_SERVER = "reppler-prod.csjmdegnz98g.us-east-1.rds.amazonaws.com" | |
TYPE= 'ALL' |
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
{ | |
"data": { | |
"count": 494, | |
"total_count": 494, | |
"posts": [ | |
{ … }, | |
{ … }, | |
{ … }, | |
{ … }, |
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
fetch: function (options) { | |
this.trigger('fetching'); | |
var new_options = _.clone(options); | |
new_options.success = function (arguments) { | |
options.success.call(arguments); | |
this.trigger('done'); | |
} | |
Backbone.Model.prototype.fetch.call(this, new_options); | |
}, |
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
fetch: function (options) { | |
this.trigger('fetching'); | |
var new_options = _.clone(options) || {}; | |
var that = this; | |
new_options.success = function (arguments) { | |
if (options && typeof options.success === "function") { | |
options.success.call(arguments); | |
} | |
that.trigger('done'); | |
} |
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
[extensions] | |
color = | |
pager = | |
hgext.mq = | |
[pager] | |
pager = LESS='FSRX' less | |
[diff] | |
git = true |
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
upstream assembla { | |
server www.assembla.com; | |
} | |
server { | |
listen *:8000; | |
server_name localhost; | |
rewrite_log on; | |
root /home/lucas/proyects/assembla.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
apply_to_f(f, funcs) { | |
return function () { | |
var a = arguments; | |
return f( | |
_.map(funcs, function(h) { | |
return h(a); | |
}); | |
) | |
} | |
} |
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
View: Backbone.View.extend({ | |
initialize: function (options) { | |
if (typeof this.smb_initialize === "function") { | |
this.smb_initialize(options); | |
} | |
this.block_options = this.block_options || {}; | |
this.block_options.element = this.block_options.element || this.$el; | |
this.block_options.object = this.block_options.object || | |
this.object; |
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
fetch: function (options) { | |
this.trigger('fetching'); | |
Backbone.Model.prototype.fetch.call( | |
this, | |
smb.wrap_callbacks(this, options) | |
); | |
}, |
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
diff --git a/src/smb/static/javascripts/modules/listing.js b/src/smb/static/javascripts/modules/listing.js | |
--- a/src/smb/static/javascripts/modules/listing.js | |
+++ b/src/smb/static/javascripts/modules/listing.js | |
@@ -124,17 +124,17 @@ | |
}, | |
idAttribute: 'inst_id', | |
url: function () { | |
return "/account/" + |