Skip to content

Instantly share code, notes, and snippets.

@bertday
bertday / index.html
Created March 31, 2020 07:46
Minimal HTML Boilerplate w/Normalize.css
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>I'm the title</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">
</head>
<body>
<p>I'm the content</p>
</body>
@bertday
bertday / browser.html
Last active April 11, 2018 15:05
Phila Standards - HTML Boilerplate
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta charset="UTF-8">
<meta content="ie=edge" http-equiv="x-ua-compatible">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>
Site title
</title>
<link href="//unpkg.com/phila-standards@0.12.0/dist/css/phila-standards.min.css" rel="stylesheet" type="text/css">
@bertday
bertday / gist:1c4f47ffda1ecb76e0efb36509de65be
Created January 17, 2018 21:54
Mapboard build.js using rollup-plugin-node-builtins, throws error
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('vuex'), require('leaflet'), require('jquery'), require('axios'), require('turf')) :
typeof define === 'function' && define.amd ? define(['exports', 'vue', 'vuex', 'leaflet', 'jquery', 'axios', 'turf'], factory) :
(factory((global.Mapboard = {}),global.Vue,global.Vuex,global.L,global.$,global.axios,global.turf));
}(this, (function (exports,Vue,Vuex,L$1,$$1,axios$1,turf) { 'use strict';
Vue = Vue && Vue.hasOwnProperty('default') ? Vue['default'] : Vue;
Vuex = Vuex && Vuex.hasOwnProperty('default') ? Vuex['default'] : Vuex;
var L$1__default = 'default' in L$1 ? L$1['default'] : L$1;
$$1 = $$1 && $$1.hasOwnProperty('default') ? $$1['default'] : $$1;
@bertday
bertday / test.js
Created December 11, 2017 00:35
Sample Nightlamb Test
TODO
@bertday
bertday / config.js
Last active May 24, 2017 22:36
Mapboard - Base Config - PHL
(() => {
const GATEKEEPER_KEY = '35ae5b7bf8f0ff2613134935ce6b4c1e';
return {
geocoder: {
methods: {
search: {
url(input) {
const inputEncoded = encodeURIComponent(input);
return `//api.phila.gov/ais/v1/search/${inputEncoded}`
@bertday
bertday / log_failing_oracle_rows.sql
Last active August 9, 2016 16:05
Tries to execute an Oracle query and writes out failing values. Note: you have to turn on dbms_output in SQL Developer first.
declare
d date;
begin
for i in (select * from properties_csv) loop
begin
d:= to_date(i.sale_date, 'yyyymmdd');
exception
when others then
dbms_output.put_line('KO: "' || i.sale_date || '"');
end;
This file has been truncated, but you can view the full file.
26013 silly addNameRange versions [ 'spdx-license-ids',
26013 silly addNameRange [ '0.0.0', '1.0.0', '1.0.1', '1.0.2', '1.1.0', '1.2.0', '1.2.1' ] ]
26014 silly addNamed spdx-license-ids@1.2.1
26015 verbose addNamed "1.2.1" is a plain semver version for spdx-license-ids
26016 verbose readDependencies loading dependencies from /usr/lib/node_modules/kong-dashboard/node_modules/node-sass/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/node_modules/is-property/package.json
26017 verbose afterAdd /home/ubuntu/.npm/spdx-license-ids/1.2.1/package/package.json written
26018 silly install resolved [ { name: 'spdx-license-ids',
26018 silly install resolved version: '1.2.1',
26018 silly install resolved description: 'A list of SPDX license identifiers',
26018 silly install resolved repository:
import datum
from ais import Geocoder
# Connect to dataset. This could be SFTP, local CSV, GeoDB2, whatever.
props = datum.table('sftp://user:password@secure-ftp.host.com/path/to/data.csv')
# Rename fields.
props.map_fields({
'acct': 'account_num',
@bertday
bertday / 872041725db8_make_state_plane.py
Created March 24, 2016 15:19
Alembic migration to change PostGIS geometry SRID
"""Make State Plane
Revision ID: 872041725db8
Revises: 685d969dbc0e
Create Date: 2016-03-23 15:46:13.297247
"""
# revision identifiers, used by Alembic.
revision = '872041725db8'

Keybase proof

I hereby claim:

  • I am rbrtmrtn on github.
  • I am rbrtmrtn (https://keybase.io/rbrtmrtn) on keybase.
  • I have a public key whose fingerprint is 43E5 78DD 455A D9CD 262A F650 1105 3DD4 4C8B 3E0E

To claim this, I am signing this object: