Skip to content

Instantly share code, notes, and snippets.

View tanqhnguyen's full-sized avatar

Tan Nguyen tanqhnguyen

View GitHub Profile
Column | Type | Modifiers
---------+-----------------------------+------------------------------------------------------
id | integer | not null default nextval('comment_id_seq'::regclass)
user_id | integer | not null
song_id | integer | not null
content | text | not null
created | timestamp without time zone | not null default now()
line | integer | not null
tail | integer | not null default 0
e.preventDefault();
var doc = e.delegateTarget;
var selection = window.getSelection();
if (!selection.rangeCount) return;
var range = selection.getRangeAt(0);
var content = $(range.cloneContents()).text();
e.preventDefault();
var doc = e.delegateTarget;
var selection = window.getSelection();
if (!selection.rangeCount) return;
var range = selection.getRangeAt(0);
var content = $(range.cloneContents()).text();
e.preventDefault();
var doc = e.delegateTarget;
var selection = window.getSelection();
if (!selection.rangeCount) return;
var range = selection.getRangeAt(0);
var content = $(range.cloneContents()).text();
l.prototype.routeSpace = function (a, b) {
var c = b[0];
return c === undefined ? this.getValues(a) : (typeof c == "number" && (c = Array.prototype.slice.call(b)), this.setValues(a, c))
}, l.prototype.setValues = function (a, b) {
return this.space = a, this.convs = {}, this.convs[a] = b, this
}, l.prototype.getValues = function (a) {
var b = this.convs[a];
if (!b) {
var c = this.space,
d = this.convs[c];
l.prototype.routeSpace = function (a, b) {
var c = b[0];
return c === undefined ? this.getValues(a) : (typeof c == "number" && (c = Array.prototype.slice.call(b)), this.setValues(a, c))
}, l.prototype.setValues = function (a, b) {
return this.space = a, this.convs = {}, this.convs[a] = b, this
}, l.prototype.getValues = function (a) {
var b = this.convs[a];
if (!b) {
var c = this.space,
d = this.convs[c];
function SomeClass() {
}
var sl = new SomeClass();
function SomeClass() {
}
var sl = new SomeClass();
var User = Backbone.Model.extend({
defaults: {
name: "Unknown",
age: 50,
company: "Unknow"
},
validate: function(attrs){
if (attrs.age > 150 || attrs.age < 0) {
return "Are you a human???";
}
var View = Backbone.View.extend({
render: function() {
var template = _.template($('#template').html(), {name:'Tan Nguyen'});
this.$el.html(template);
}
});
var myView = new View();
var object = {};