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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../paper-input/paper-input.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
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
model.storageObject = {}; | |
_.each(dataArray, function(item) { | |
if (!model.storageObject[item.key]) { | |
model.storageObject[item.key] = []; | |
} | |
model.storageObject[item.key].push(item); | |
}); |
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
return (new Array(size - (''+number).length).map(function(i) { return '0'; }).join('')) + ''+number; |
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
(Array.apply(null, new Array(size - (''+number).length)).map(function(i) { return '0'; }).join('')) + ''+number; |
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
Request({ | |
uri: uri, | |
json: params.format ? false : true, | |
timeout: app.config.timeout | |
}, function(error, response, body) { | |
if (error) { | |
return onError(error); | |
} |
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
<!-- build:js /dist/vendor.js --> | |
<script src="/vendor/fastclick/fastclick.js"></script> | |
<script src="/app/underscroll.js"></script> | |
<script src="/vendor/d3/d3.min.js"></script> | |
<script src="/vendor/crossfilter/crossfilter.min.js"></script> | |
<script src="/vendor/jquery/dist/jquery.min.js"></script> | |
<script src="/vendor/angular/angular.js"></script> | |
<script src="/vendor/angular-sanitize/angular-sanitize.js"></script> | |
<script src="/vendor/angular-cookies/angular-cookies.min.js"></script> | |
<script src="/vendor/angular-scroll/angular-scroll.js"></script> |
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
'use strict'; | |
import bar from './module/bar'; | |
class Foo { | |
constructor(baz) { | |
this.baz = baz; | |
} | |
bar: bar(this) |
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 http = require('http'); | |
var server = http.createServer(function(req, res) { | |
if (req.url === '/foo') | |
res.write('<h1>FOO!</h1>'); | |
res.end(); | |
}); | |
server.listen(8001) |
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
Instance.db.User = Instance.db.sequelize.define('user', { | |
email: { | |
type: Sequelize.STRING, | |
allowNull: false, | |
validate: { | |
isEmail: true | |
} | |
}, | |
password: { | |
type: Sequelize.STRING, |
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
return gulp.src([__dirname + '/../lib/**/!(*spec).js']) | |
.pipe(plugins.istanbul({ includeUntested: true })) | |
.pipe(plugins.istanbul.hookRequire()) | |
.on('finish', function () { | |
return gulp.src([__dirname + '/../lib/**/*spec.js'], { read: false }) | |
.pipe(plugins.mocha({ | |
reporter: 'spec', | |
coverageFolder: 'coverage/backend' | |
})) | |
.pipe(plugins.istanbul.writeReports({ |