Skip to content

Instantly share code, notes, and snippets.

View quartzmo's full-sized avatar

Chris Smith quartzmo

  • Google
  • Salt Lake City, Utah, USA
  • 06:18 (UTC -06:00)
View GitHub Profile
dc.ui.AnnotationEditor = Backbone.View.extend({
id : 'annotation_editor',
events : {
'click .close': 'close'
},
constructor : function(options) {
Backbone.View.call(this, options);
@jwo
jwo / registrations_controller.rb
Created September 30, 2011 23:11
API JSON authentication with Devise
class Api::RegistrationsController < Api::BaseController
respond_to :json
def create
user = User.new(params[:user])
if user.save
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201
return
else
@jed
jed / LICENSE.txt
Created May 20, 2011 13:27 — forked from 140bytes/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE