This file contains 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
exports.up = function (knex) { | |
return knex.schema.createTable('list', function (t) { | |
t.increments('id'); | |
t.integer('owner_id').notNullable(); | |
t.text('name').notNullable(); | |
t.timestamp('last_modified'); | |
}); | |
}; | |
exports.down = function (knex) { |
This file contains 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
foo bar | |
baz | |
qux | |
last line (there may or may not be a trailing newline after this line) |
This file contains 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
var clone = require("./").Clone.clone; | |
function errorLog(err) { | |
console.error(err); | |
} | |
// Look up this known commit. | |
function getCommit(repo) { | |
// Use a known commit sha from this repository. | |
return repo.getCommit("59b20b8d5c6ff8d09518454d4dd8b7b30f095ab5"); |
This file contains 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
sh: napa: command not found | |
npm ERR! Darwin 14.1.0 | |
npm ERR! argv "node" "/usr/local/bin/npm" "install" | |
npm ERR! node v0.12.0 | |
npm ERR! npm v2.7.3 | |
npm ERR! code ELIFECYCLE | |
npm ERR! ember-templates-loader@1.3.0 install: `napa` | |
npm ERR! Exit status 127 | |
npm ERR! |
This file contains 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
class CustomElement extends HTMLElement { | |
constructor() { | |
super(); | |
} | |
attachedCallback() { | |
this.bindEvents(); | |
} | |
detachedCallback() { |
This file contains 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
$(document).ready(function(){ | |
function rem(e){ | |
alert("asdfasdf"); | |
}; | |
$("#remove").click(rem); | |
}); |
This file contains 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
$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) { | |
$.Widget.prototype[ "_" + method ] = function( element, options, callback ) { | |
options = options || {}; | |
var hasOptions = !$.isEmptyObject( options ), | |
effectName = options.effect || defaultEffect; | |
options.complete = callback; | |
if (options.delay) { | |
element.delay( options.delay ); | |
} | |
if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) { |
This file contains 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
// Get a promise resolved when the currently queued functions complete | |
promise: function( type ) { | |
type = type || "fx"; | |
var defer = jQuery.Deferred(), | |
elements = this, | |
count = elements.length; | |
function resolve( next ) { | |
if ( !( --count ) ) { | |
defer.resolveWith( elements, [ elements ] ); |
This file contains 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
test( "animate properties missing px w/ opacity as last (#9074)", 2, function() { | |
expect( 6 ); | |
stop(); | |
var div = jQuery( "<div style='position: absolute; margin-left: 0; left: 0px;'></div>" ) | |
.appendTo( "#qunit-fixture" ); | |
function cssInt( prop ) { | |
return parseInt( div.css( prop ), 10 ); | |
} | |
equal( cssInt( "marginLeft" ), 0, "Margin left is 0" ); | |
equal( cssInt( "left" ), 0, "Left is 0" ); |
This file contains 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
function present( value, array, message ) { | |
QUnit.push( jQuery.inArray( value, array ) !== -1 , value, array, message ); | |
} | |
function notPresent( value, array, message ) { | |
QUnit.push( jQuery.inArray( value, array ) === -1 , value, array, message ); | |
} |
OlderNewer