I hereby claim:
- I am jbavari on github.
- I am jbavari (https://keybase.io/jbavari) on keybase.
- I have a public key ASCCLgv0jjgZyCSfS2BijP7uDcrCIIzFlHorrYZXq1uNJQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| var q = require('q'); | |
| var askPrompt = function() { | |
| var deferred = q.defer(); | |
| var prompt = require('prompt'); | |
| var promptProperties = { | |
| selection: { | |
| name: 'selection', | |
| description: 'Address Selection: '.yellow.bold, |
| var express = require('express') | |
| var app = express() | |
| app.get('/api/feed', function(req, res) { | |
| res.json({name: 'feed', items: ['first', 'second']}) | |
| }) | |
| var server = app.listen(3000, function () { | |
| var host = server.address().address |
| # Description: | |
| # Make hubot fetch the national felony football scores | |
| # | |
| # Dependencies: | |
| # "cheerio": "^0.17.0" | |
| # | |
| # Configuration: | |
| # None | |
| # | |
| # Commands: |
| //Copy and paste this in the developer console on http://www.usatoday.com/sports/nfl/arrests/ | |
| var teams = {}; | |
| //Index is index in array for each, item is the html element | |
| var getTeamCounts = function getTeamCounts(index, item) { | |
| console.log('index: ', index, ' item: ', item); | |
| var teamAtr = $(item).html(); | |
| console.log('teamAtr: ', teamAtr); | |
| var teamCount = teams[teamAtr]; |
| { | |
| "tour": [ | |
| { | |
| "brewery": "Boulder Beer", | |
| "url": "http://boulderbeer.com/beers", | |
| "beer": "Hazed and Infused", | |
| "topic": "Dealing with Hazy specifications" | |
| }, | |
| { | |
| "brewery": "Upslope Brewery", |
| // Karma configuration | |
| // Generated on Wed Jun 11 2014 09:51:52 GMT-0500 (CDT) | |
| module.exports = function(config) { | |
| config.set({ | |
| // base path that will be used to resolve all patterns (eg. files, exclude) | |
| basePath: '', | |
| print_state_diagram: { | |
| options: { | |
| stdout: true | |
| }, | |
| command: function() { | |
| // var states_chart = grunt.file.read('states.js'); | |
| var glob = require('./states.js'); | |
| var states = glob.states; | |
| grunt.log.writeln("Total number of states: " + states.length + "\n"); |