Models | Examples |
---|---|
Display ads | Yahoo! |
Search ads |
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
/home/sigmund/war/fth-ship/yo/node_modules/yeoman-generator/lib/base.js:341 | |
Object.getPrototypeOf(self)[method].apply(self, args); | |
^ | |
TypeError: Cannot call method 'apply' of undefined | |
at /home/sigmund/war/fth-ship/yo/node_modules/yeoman-generator/lib/base.js:341:43 | |
at /home/sigmund/war/fth-ship/yo/node_modules/async/lib/async.js:551:21 | |
at /home/sigmund/war/fth-ship/yo/node_modules/async/lib/async.js:227:13 | |
at iterate (/home/sigmund/war/fth-ship/yo/node_modules/async/lib/async.js:134:13) | |
at /home/sigmund/war/fth-ship/yo/node_modules/async/lib/async.js:145:25 | |
at /home/sigmund/war/fth-ship/yo/node_modules/async/lib/async.js:229:17 |
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 gulp = require('gulp'); | |
var spawn = require('child_process').spawn; | |
var gutil = require('gulp-util'); | |
var gmocha = require('gulp-mocha'); | |
var gwatch = require('gulp-watch'); | |
var gbatch = require('gulp-batch'); | |
function testsTaskHandler ( callback ) { | |
var paths = [ | |
'./test/**/*.test.js', |
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
Hello from {{name}} |
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
{ | |
"name": "{{name}}", | |
"version": "{{version}}", | |
"author": "{{author}}", | |
"public": {{public}}, | |
"main": "{{entryPoint}}" | |
} |
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 ether = require('ether'); | |
var meta = null; | |
meta = ether({ | |
tree: [ | |
'modules', | |
'models', | |
'middlewares', | |
'controllers', | |
'fixtures', |
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 userComponent = { | |
fullName: function () { return this.firstName + ' ' + this.lastName; }, | |
get: function (key, value) { return this[key] || (value || ''); }, | |
}; | |
var evandro = Object.create(userComponent, { | |
'firstName': { value: 'Evandro', enumerable: false }, | |
'lastName': { value: 'Ribeiro', enumerable: false } | |
}); |
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 withoutHandler(arr, remove) { | |
var out = []; | |
var unwhiteList = []; | |
function _removeMapHandler(current) { | |
unwhiteList.push(arr.indexOf(current)); | |
} | |
remove | |
.map(_removeMapHandler); |
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
#coding:utf-8 | |
#!/usr/bin/env python | |
values = [] | |
total = None | |
def is_max(a, b): | |
return a >= b | |
def is_min(a, b): | |
return a <= b |
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
/* | |
nomeMenu = "Menu que sera selecionado", | |
item = "Item do menu que sera selecionado", | |
conteudo = "conteudo do menu que sera selecionado" | |
Teste URL: http://jsbin.com/ecitid/4 | |
*/ | |
function alternarAbas(nomeMenu,item,conteudo){ | |
var mElement = $(nomeMenu+" "+item); | |
$(conteudo).css({display:"none"}); | |
$(conteudo+":eq(0)").css({display:"block"}); |
OlderNewer