<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
snippet bfun | |
${1:(${2:args}) }=> | |
${3:# body...} | |
snippet cla | |
class ${1:ClassName}${2: extends ${3:Ancestor}} | |
${4:constructor: (${5:args}) -> | |
${6:# body...}} | |
$7 |
fs = require 'fs' | |
{exec} = require 'child_process' | |
util = require 'util' | |
growl = require 'growl' | |
appFiles = [ | |
'src/hasToGoFirst.coffee' # put your files that must be loaded in first into the array | |
'src/notAsImportantButNeedsToGoBeforeTheRest.coffee' | |
] |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
// This is the main application configuration file. It is a Grunt | |
// configuration file, which you can learn more about here: | |
// https://github.com/cowboy/grunt/blob/master/docs/configuring.md | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
// The clean task ensures all files are removed from the dist/ directory so | |
// that no files linger from previous builds. | |
clean: ["dist/"], |
// add s3: {key: '', secret: '', bucket: ''} to component.json | |
builder.use(s3); | |
function s3 (b) { | |
var s3Client; | |
Builder.prototype.copyTo = function (file, dest, done) { | |
var s3Dest = dest.replace(b.assetsDest,''); | |
s3Client = s3Client || knox.createClient(b.conf.s3) |
The View's constructor should take an optional model
. It should also take an optional el
so that the user can use a pre-made element instead of the View creating its own. If necessary, it should take additional options
as a dictionary.
For convenience, add an el -> options
overload if you add an options
argument.
The View's template should live at .template
if one exists so that it can be overriden if need be. The HTML for the view's template is also part of it's spec, so it should be well thought out. Use namespaced class names for child elements to avoid collisions (for example an .integration
element's label would be .integration-label
).
function params(fn) { | |
var str = fn.toString(); | |
var sig = str.match(/\(([^)]*)\)/)[1]; | |
if (!sig) return []; | |
return sig.split(', '); | |
} | |
console.api = function(obj){ | |
console.log(); | |
var proto = Object.getPrototypeOf(obj); |
.floatLabel { | |
transition: all 1s ease-in-out; | |
position: relative; | |
} | |
.floatLabel.hide { | |
opacity: 0; | |
top: 3px; | |
} |
lib-cov | |
*.seed | |
*.log | |
*.csv | |
*.dat | |
*.out | |
*.pid | |
*.gz | |
*.DS_Store | |
*.swp |