Skip to content

Instantly share code, notes, and snippets.

View andyhullinger's full-sized avatar

Andy Hullinger andyhullinger

  • Medill School of Journalism, Media, Integrated Marketing Communications
  • Evanston, Illinois
  • 06:38 (UTC -05:00)
View GitHub Profile
@andyhullinger
andyhullinger / index.html
Created June 27, 2024 16:50
leaflet 123rd wwga
<div id="map"></div>
<div id="wwgafield"></div>
@andyhullinger
andyhullinger / images-into-netlify-quick-example.markdown
Created November 9, 2022 17:29
images into netlify - quick example
@andyhullinger
andyhullinger / index.html
Created October 11, 2021 12:50
Project 2 Sketch — Ross Shinberg
<article>
<header>
<h1> Mason Men’s Basketball 2019-2020 Nonconference Schedule Breakdown </h1>
<h2> BY ROSS SHINBERG STAFF WRITER </h2>
</header>
<figure>
<img src="https://northwestern.box.com/shared/static/4c4mwi6z5rhb0u7qu3nceyuh4bvuvgh6.png">
<figcaption>
Mason forward A.J. Wilson emphatically dunks a ball during a game against Richmond.
var keys = [UIKeyCommand]()
override func viewDidLoad() {
super.viewDidLoad()
//configureGameControllers()
for digit in "abcdefghijklmnopqrstuvwxyz"
{
keys.append(UIKeyCommand(input: String(digit), modifierFlags: nil, action: Selector("keyPressed:")))
}
@andyhullinger
andyhullinger / gist:d87ac9ca6a9bca45740a
Created November 19, 2015 09:29
WGET grab all linked images from a webpage
wget localhost:8000 -E -H -p -nd
//export codepen to local folder open in python -m SimpleHTTPServer and use this to grab linked images
@andyhullinger
andyhullinger / gist:0f4e1736a42258134b19
Created October 10, 2015 12:12
Remove all .DS_Store files
find . -name '*.DS_Store' -type f -delete

#Batch convert folder of jpeg or png files cd into image folder and generate new folder of converted images

mkdir jpegs; sips -s format jpeg *.* --out jpegs

mkdir pngs; sips -s format png *.* --out pngs

@andyhullinger
andyhullinger / OSX Simple batch image resizing
Created November 19, 2014 17:10
OSX Simple batch image resizing
sips -Z 1024 *.png
A cap "Z" to retain aspect ratio
Provide longest dimension in pixels to fit image to
Use wildcard.ext to batch all files of same type

Convert SVG polyline to path

Replace all instances of <polyline with <path and points=" with d="M.

 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1000px" height="1000px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
-<polyline fill="#FFFFFF" stroke="#000000" stroke-miterlimit="10" points="100.712,141.534 582.904,227.835 425.37,478.521
+
@andyhullinger
andyhullinger / OSX Spin up a Simple PHP Server
Created June 24, 2014 17:34
Quick and dirty local web server for simple testing of php (handy for verifying includes)
php -S localhost:8000