Monitors an API for new data and sends digest emails to subscribers.
id | query |
---|---|
3 | status=active |
// Move item in an array immutably | |
function moveItem (array, fromIndex, toIndex) { | |
console.log(`moving from ${fromIndex} to ${toIndex}`) | |
const arrayCopy = array.slice() | |
const item = arrayCopy[fromIndex] | |
arrayCopy.splice(fromIndex, 1) // remove field that's moving | |
arrayCopy.splice(toIndex, 0, item) // add it back | |
return arrayCopy | |
} |
const html = require('bel') | |
const el1 = html` | |
<div class="checkbox required-toggle"> | |
<label><input type="checkbox"> Required</label> | |
</div> | |
` | |
const el2 = html` | |
<div class="checkbox required-toggle"> |
const html = require('bel') | |
const el1 = html` | |
<div class="checkbox required-toggle"> | |
<label><input type="checkbox"> Required</label> | |
</div> | |
` | |
const el2 = html` | |
<div class="checkbox required-toggle"> |
const choo = require('choo') | |
const html = require('choo/html') | |
const widget = require('cache-element/widget') | |
const L = require('leaflet') | |
const esri = require('esri-leaflet') | |
const basemap = 'https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityBasemap/MapServer' | |
const app = choo() |
{ | |
"version": "2", | |
"header": { | |
"title": "Crime Incidents 2015 - October 2016", | |
"description": "Philadelphia Police Department crime incidents from calendar year 2006 to present, including Part I and Part II crimes. UCR codes are generalized and incident locations are rounded to the hundred block. These counts may not coincide exactly with data that is submitted to the Uniformed Crime Reporting (UCR) system.", | |
"navigation": [ | |
{ | |
"label": "Download", | |
"url": "" | |
} |
const html = require('choo/html') | |
const L = require('leaflet') | |
module.exports = () => { | |
let cachedEl | |
let cachedCoords | |
let map | |
return function (coords) { | |
let currentCoords = coords |
const style = require('typestyle').style | |
const html = require('bel') | |
const className = style({ | |
height: '125px', | |
position: 'relative', | |
backgroundColor: '#d4d4d4', | |
'&:after': { | |
content: '"+"', | |
fontSize: '550%', |
const choo = require('choo') | |
const html = require('choo/html') | |
const app = choo() | |
app.model({ | |
state: {}, | |
reducers: { | |
receive: (data, state) => ({}) | |
}, |
"Vacant Property Indicators: 2016-11-14T17:46:54.215540" | |
"Greenworks Dashboard: 2016-11-10T05:47:25.073084" | |
"Licenses and Inspections Trade Licenses: 2016-09-22T21:15:57.272811" | |
"Licenses and Inspections Business Licenses: 2016-09-22T21:14:38.869844" | |
"Licenses and Inspections Clean and Seal: 2016-09-22T18:07:28.682465" | |
"Licenses and Inspections: Inspections Data: 2016-09-22T16:17:08.376879" | |
"Licenses and Inspections Commercial Activity Licenses: 2016-09-22T15:36:26.156628" | |
"Licenses and Inspections Service Requests: 2016-09-22T14:31:12.542396" | |
"Licenses and Inspections Appeals of Code Violations and Permit Refusals: 2016-09-22T14:01:30.276425" | |
"DVRPC Freight Rail: 2016-08-16T13:52:59.204610" |