Monitors an API for new data and sends digest emails to subscribers.
id | query |
---|---|
3 | status=active |
const html = require('choo/html') | |
const L = require('leaflet') | |
module.exports = () => { | |
let cachedEl | |
let cachedCoords | |
let map | |
return function (coords) { | |
let currentCoords = coords |
{ | |
"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 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() |
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"> |
// 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 | |
} |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<meta name="robots" content="NONE,NOARCHIVE"> | |
<title>AttributeError at /api/travel-request/</title> | |
<style type="text/css"> | |
html * { padding:0; margin:0; } | |
body * { padding:10px 20px; } |
/* global setState, sendVerificationEmail, sendApprovalEmail, sendRejectNotification, isValidKey */ | |
const supervisors = [ | |
'[email protected]', | |
'[email protected]' | |
] | |
module.exports = { | |
name: 'Travel Request', | |
states: [ | |
{ |
####################### | |
# Toggle Proxy | |
# Usage: | |
# sudo ./proxy.sh on | |
# sudo ./proxy.sh off | |
####################### | |
NETWORK_SERVICE=Wi-Fi # The name of the device in "Network Settings" left-hand panel | |
networksetup -setwebproxystate $NETWORK_SERVICE $1 |