brew install mongodb
mkdir -p /data/db
Ensure that user account running mongod has correct permissions for the directory:
var restify = require('restify') | |
, port = process.env.PORT || 3000 | |
, Phantom = require('phantom') | |
, tmpdir = require('os').tmpdir() | |
, fs = require('fs'); | |
var server = restify.createServer(); | |
function setResponseHeaders(res, filename) { | |
res.header('Content-disposition', 'inline; filename=' + filename); |
DELETE FROM geoname WHERE (zip, place, state) IN | |
(SELECT DISTINCT ON (zip) zip, place, state FROM geoname WHERE zip IN | |
( '10804', | |
'15129', | |
'15714', | |
'19018', | |
'27539', | |
'28470', |
<div class="oregon-map-wrapper"> | |
<nav class="oregon-map-wrapper__nav"><ul><li class="oregon-map-wrapper__nav__button--community" data-click="">Building<br class="hidden-small"> | |
Community</li> | |
<li class="oregon-map-wrapper__nav__button--education" data-click="">Equitable<br class="hidden-small"> | |
Education</li> | |
<li class="oregon-map-wrapper__nav__button--environment" data-click="">Healthy<br class="hidden-small"> | |
Environment</li> | |
<li class="oregon-map-wrapper__nav__button--housing" data-click="">Housing<br class="hidden-small"> | |
Opportunities</li> |
{ | |
"name": "Proto-Indo-European", | |
"children": [ | |
{ | |
"name": "Hellenic", | |
"children": [ | |
{ | |
"name": "Greek" | |
} | |
] |
Executing (default): SELECT "serviceFulfillment"."id", "serviceFulfillment"."state", "serviceFulfillment"."service_provider_type", "serviceFulfillment"."created_at", "serviceFulfillment"."updated_at", "serviceFulfillment"."move_id", "serv | |
iceFulfillment"."branch_id", "move"."id" AS "move.id", "move"."publicId" AS "move.publicId", "move"."inventory_method_selection" AS "move.inventory_method_selection", "move"."item_count" AS "move.item_count", "move"."excluded_item_count" | |
AS "move.excluded_item_count", "move"."mileage" AS "move.mileage", "move"."volume" AS "move.volume", "move"."excluded_volume" AS "move.excluded_volume", "move"."weight" AS "move.weight", "move"."excluded_weight" AS "move.excluded_weight", | |
"move"."move_step" AS "move.move_step", "move"."inventory_approved" AS "move.inventory_approved", "move"."inventory_ready_for_customer" AS "move.inventory_ready_for_customer", "move"."estimated_weight" AS "move.estimated_weight", "move". | |
"confirmed_weight" AS "move.confirmed_weight", "move"."survey_notes" |
var _ = require('lodash'); | |
var fs = require('fs'); | |
var readline = require('readline'); | |
fs.readdir('./data', function(err, files) { | |
if (err) throw err; | |
files.map(function(file) { | |
fs.readFile('./data/' + file, {encoding: 'utf-8'}, function (err, messages) { | |
if (err) throw err; |
window.navigator.geolocation.getCurrentPosition(function(pos){ | |
$.get('//maps.googleapis.com/maps/api/geocode/json?latlng='+pos.coords.latitude+','+pos.coords.longitude+'&sensor=true') | |
.then(function(res){ | |
var postalCode = res.results.filter(function (result) { | |
return result.types.indexOf('postal_code') !== -1; | |
})[0]; | |
var formattedPostalCode = postalCode.address_components.filter(function(component) { | |
return component.types.indexOf('postal_code') !== -1; | |
}).map(function(postalCode) { |
I hereby claim:
To claim this, I am signing this object:
var R = require('ramda'); | |
var people = [ | |
{ | |
name: 'Adam', | |
age: 30, | |
gender: 'm', | |
party: 'd' | |
}, | |
{ |