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 browserify = require('gulp-browserify'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify') | |
var connect = require('gulp-connect'); | |
var less = require('gulp-less'); | |
var clean = require('gulp-clean'); | |
var jshint = require('gulp-jshint'); | |
var gzip = require('gulp-gzip'); | |
var path = require('path'); |
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
dfsfd |
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 extractKeywords (articles) { | |
var keywordslist = [] | |
_.each(articles, function(article){ | |
console.log(article) | |
}) | |
} | |
function processor (nytresponse) { | |
var articles = nytresponse.response.docs; |
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
First things first, we need to create a 'contact' model... | |
$ yo handlebones:model contact | |
...and populate it with defaults: | |
define(['model'], function (Model) { | |
return Model.extend({ | |
name: 'contact', | |
defaults: { |
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 _ = require('underscore'); | |
var gulp = require('gulp'); | |
var s3 = require('gulp-s3'); | |
var browserify = require('gulp-browserify'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify') | |
var rename = require('gulp-rename'); | |
var connect = require('gulp-connect'); | |
var less = require('gulp-less'); | |
var clean = require('gulp-clean'); |
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
define(['model'], function (Model) { | |
return Model.extend({ | |
name: 'article', | |
defaults: { | |
"wooo": "yaaayyyy" | |
} | |
}); | |
}); |
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 happyNumbers = []; | |
var unhappyNumbers = []; | |
//require the 'fs' module | |
var fs = require("fs"); | |
//Read the file from the filesystem, pass into a callback function each number to be checked | |
fs.readFileSync(process.argv[2]).toString().split('\n').forEach(function (line) { | |
//if the line isn't empty run isHappyOrUnhappy function passing in the number as the arg | |
if (line != "") { | |
isHappyOrUnhappy(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 path = require("path"), | |
express = require("express"); | |
var app = express() | |
.use(express.static(__dirname)); | |
var port = process.env.PORT || 4000; | |
app.listen(port); | |
console.log("Started server on port " + port ); |
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
31e494d48ef385c,https://pol.is/ot/1299/5E7LicZFvP5s7u9zuSolE41l8IMelqkb | |
8bf47179873e57a,https://pol.is/ot/1299/3QpNYIB83lNmut6IXnJEoAs6EWyelfu2 | |
724562114098c71,https://pol.is/ot/1299/9ZtAIa91cQLfQRbBTxkGZg7vHsdB6V2N | |
ea726ced419c955,https://pol.is/ot/1299/4v1fy4gfa3a2BtOzfxdkXBArmYfjP7OL | |
717fc8f254f2423,https://pol.is/ot/1299/9l3WYr6S5vRG6x6nkAAsGiVS7VzfhCEs | |
454c4d506d1cf93,https://pol.is/ot/1299/7tLCV7tlyoMqSt6nk4VjbZY4V1UDHabu | |
1da9a8dc61b09de,https://pol.is/ot/1299/6MwzbNrBgmxwBMAsCOeVJm3M1upVmCAe | |
46cb6cb2e2d74ac,https://pol.is/ot/1299/55ychWG4gtyUlG1uLJpMedfE77kY3oom | |
ef1d635d48177ce,https://pol.is/ot/1299/76rWqZEcATfuISkyw2xME8uqBHNHqqsN | |
4345d66e9b38736,https://pol.is/ot/1299/8IFjZf5rJIUxE2vBf50nQB52aEQVI56Y |
OlderNewer