Skip to content

Instantly share code, notes, and snippets.

View kyleknighted's full-sized avatar

Kyle Knight kyleknighted

View GitHub Profile
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="openstreetmap-cgimap 2.1.0 (2490388 spike-06.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
<bounds minlat="38.0912700" minlon="-91.0933100" maxlat="38.1384000" maxlon="-91.0474800"/>
<node id="189979188" visible="true" version="3" changeset="36977334" timestamp="2016-02-03T13:36:36Z" user="maxerickson" uid="360392" lat="38.1796611" lon="-91.2021517"/>
<node id="189979190" visible="true" version="3" changeset="36977334" timestamp="2016-02-03T13:36:36Z" user="maxerickson" uid="360392" lat="38.1784321" lon="-91.2004624"/>
<node id="189979192" visible="true" version="3" changeset="36977334" timestamp="2016-02-03T13:36:36Z" user="maxerickson" uid="360392" lat="38.1773793" lon="-91.1990139"/>
<node id="189979194" visible="true" version="3" changeset="36977334" timestamp="2016-02-03T13:36:36Z" user="maxerickson" uid="3
@kyleknighted
kyleknighted / create_readme.sh
Created August 21, 2018 14:26
Automating SVG Icon Management with Sketch and Makefiles
#!/usr/bin/env sh
readme=./src/assets/README.md
echo -n > $readme # clears or creates empty file
echo "# Icons" >> $readme # h1 title of README document
echo "| preview | name |" >> $readme # column names for table
echo "|:----:| ---- |" >> $readme # center align preview image and left align name
# loop through all icons
@kyleknighted
kyleknighted / svgo.json
Last active August 21, 2018 14:26
Automating SVG Icon Management with Sketch and Makefiles
{
"plugins": [
{
"removeTitle": true
},
{
"cleanupNumericValues": {
"floatPrecision": 2
}
},
@kyleknighted
kyleknighted / Makefile
Last active August 21, 2018 14:25
Automating SVG Icon Management with Sketch and Makefiles
icons-sketch:
# https://developer.sketchapp.com/guides/sketchtool/
/Applications/Sketch.app/Contents/Resources/sketchtool/bin/sketchtool export slices path/to/icons.sketch --formats=svg --output=src/assets/icons
icons-svgo:
# https://github.com/svg/svgo/#cli
./node_modules/.bin/svgo --config=./svgo.json --folder=./src/assets/icons/ --output=./ui/src/assets/icons/ --multipass --quiet
icons-sprite:
# https://github.com/jkphl/svg-sprite/blob/master/docs/command-line.md
@kyleknighted
kyleknighted / VSCode Italic Comment Setting
Created May 23, 2018 12:13
This snippet will allow you to have italics in comments while using supported fonts like Operator Mono
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"name": "Italicsify for Operator Mono",
"scope": [
"modifier",
"this",
"comment",
"storage.modifier.js",
"entity.other.attribute-name.js"
<div class="block">
<div class="block__element">Stuff</div>
<div class="block__element--modifier">Red Stuff</div>
<div class="block__element--and-another">Yellow Stuff</div>
<div class="block__element--modifier block__element--and-another">Blue Stuff</div>
</div>
<div class="block">
<div class="block__element">Stuff</div>
<div class="block__element--modifier">Red Stuff</div>
<div class="block__element--and-another">Yellow Stuff</div>
<div class="block__element--modifier block__element--and-another">Blue Stuff</div>
</div>
<div class="block">
<div class="block__element">Stuff</div>
<div class="block__element--modifier">Red Stuff</div>
<div class="block__element--modifier block__element--and-another">And Another</div>
</div>
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person
.element {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
}