Skip to content

Instantly share code, notes, and snippets.

View bhousel's full-sized avatar

Bryan Housel bhousel

View GitHub Profile
@bhousel
bhousel / wikidata_output.txt
Created November 20, 2020 17:43
output from build_wikidata 2020-nov-20
Warning: https://www.wikidata.org/wiki/Q647092 Intesa Bank might possibly be replaced by Q1343118
Warning: https://www.wikidata.org/wiki/Q4854143 Bancpost might possibly be replaced by Q806161
Warning: https://www.wikidata.org/wiki/Q95984154 BB&T might possibly be replaced by Q795486
Warning: https://www.wikidata.org/wiki/Q3821055 Caja Duero might possibly be replaced by Q8254950
Q2931752 "الصندوق الوطني للتوفير والاحتياط" adding missing tag brand:wikipedia = ar:الصندوق الوطني للتوفير والاحتياط
Warning: https://www.wikidata.org/wiki/Q9256201 Eurobank might possibly be replaced by Q4855947
Q5453817 "First State Bank (West Nebraska and Omaha)" adding missing tag brand:wikipedia = en:1st State Bank - 1st.BANK
Q16976594 "Fulton Bank" adding missing tag brand:wikipedia = en:Fulton Bank
Q8072576 "Zions Bank" adding missing tag brand:wikipedia = en:Zions Bank
Warning: https://www.wikidata.org/wiki/Q4086829 B&N Bank might possibly be replaced by Q4327204
@bhousel
bhousel / craft.json
Last active August 28, 2020 18:27
Crafts in NSI
{
"shop": {
"craft": {
"A.C. Moore": {
"id": "acmoore-286374",
"locationSet": {"include": ["us"]},
"oldid": "shop/craft|A.C. Moore",
"tags": {
"brand": "A.C. Moore",
"brand:wikidata": "Q4647066",
@bhousel
bhousel / debug_text_bboxes.js
Created January 24, 2016 06:15
Debug text bboxes in #iD
// debug
var gj = rtree.all().map(function(d) {
return { type: 'Polygon', coordinates: [[
[d[0], d[1]], [d[2], d[1]], [d[2], d[3]], [d[0], d[3]], [d[0], d[1]]
]]};
});
var debug = label.selectAll('.layer-debug').data([0]);
debug.enter()
@bhousel
bhousel / index.html
Last active November 30, 2015 23:13
SVG Performance with paths and rounded decimal coordinates
<!DOCTYPE html>
<meta charset="utf-8">
<title>SVG Swarm</title>
<style>
svg {
position: absolute;
top: 0;
}
@bhousel
bhousel / index.html
Last active November 30, 2015 22:28
SVG Performance with paths and stringified coordinates
<!DOCTYPE html>
<meta charset="utf-8">
<title>SVG Swarm</title>
<style>
svg {
position: absolute;
top: 0;
}
@bhousel
bhousel / index.html
Last active November 30, 2015 22:29 — forked from tmcw/index.html
SVG Performance with paths and rounded coordinates
<!DOCTYPE html>
<meta charset="utf-8">
<title>SVG Swarm</title>
<style>
svg {
position: absolute;
top: 0;
}
@bhousel
bhousel / index.html
Last active November 30, 2015 22:29 — forked from tmcw/index.html
SVG Performance with paths and rounded but long coordinates
<!DOCTYPE html>
<meta charset="utf-8">
<title>SVG Swarm</title>
<style>
svg {
position: absolute;
top: 0;
}
@bhousel
bhousel / index.html
Last active November 30, 2015 22:30 — forked from tmcw/index.html
SVG Performance with paths and unrounded coordinates
<!DOCTYPE html>
<meta charset="utf-8">
<title>SVG Swarm</title>
<style>
svg {
position: absolute;
top: 0;
}
@bhousel
bhousel / debug_events.js
Last active March 17, 2016 04:25
Debug Events
['touchstart', 'touchend', 'touchcancel',
'mousedown', 'mouseup',
'click', 'dblclick', 'contextmenu',
'dragstart', 'dragend',
'movestart', 'moveend',
'zoomstart', 'zoomend',
'rotatestart', 'rotateend',
'pitchstart', 'pitchend',
'boxzoomstart', 'boxzoomend', 'boxzoomcancel'
].forEach(function (type) {