Skip to content

Instantly share code, notes, and snippets.

@colevscode
colevscode / model.js
Created May 8, 2012 01:22 — forked from syntagmatic/model.js
Basic Backbone Collection
// Model Definition
var Item = Backbone.Model.extend({
defaults: function() {
return {
text: "lorem ipsum"
}
},
});
// Collection Definition
@colevscode
colevscode / APIWithBasicAuth.py
Created November 8, 2011 00:43
Python class for calling methods of a REST based API. Supports basic authentication over HTTPS
# Copyright (c) 2011 Cole Krumbholz
#
# 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