Skip to content

Instantly share code, notes, and snippets.

@hcliff
hcliff / sha1.js
Created September 26, 2012 16:38
sha1 javascript
/**
* SHA-1 cryptographic hash constructor.
*
* The properties declared here are discussed in the above algorithm document.
* @constructor
*/
Sha1 = function() {
/**
$(window).on 'message',
# Inform the parent if the size of the widget changes
height = 0
setInterval ->
( ($, window)->
# Store the actual iframe
frame = null
class Example.Views.Table extends Backbone.View
template: JST['example/table']
initialize: ->
@collection.on 'add', @addOne
render: ->
@$el.html @template()
@addAll()
@
class Example.Views.Table extends Backbone.View
template: JST['example/table']
initialize: ->
_.bindAll @, 'addOne', 'addAll'
@collection.on 'add', @addOne
render: ->
@$el.html @template()
class Example.Views.Table extends Backbone.View
template: JST['example/table']
initialize: ->
_.bindAll @, 'addOne', 'addAll'
@collection.on 'add', @addOne
render: ->
@$el.html @template()
@hcliff
hcliff / gist:2769429
Created May 22, 2012 14:32
Backbone class for retrieving a users facebook friends. Supports pagination and search
# A small class that allows normal backbone interaction with
# the abomination that is the facebook api
# No view included due to the individuality of each solution
# the properties for the model are: uid, name, pic_square
class exports.FacebookFriendsList extends Backbone.Collection
#model: exports.InvitationFacebook
options:
page: 0