Skip to content

Instantly share code, notes, and snippets.

View gtallen1187's full-sized avatar
🤪

Greg Allen gtallen1187

🤪
View GitHub Profile
# Convert TO webp
# cwebp docs - https://developers.google.com/speed/webp/docs/cwebp
cwebp -q 80 image.png -o image.webp
# Convert FROM webp
#dwebp docs - https://developers.google.com/speed/webp/docs/dwebp
dwebp image.webp -o image.png
@gtallen1187
gtallen1187 / nyc_subway_entrances.geojson
Created August 14, 2019 16:42
Collection of all subway entrances for the NYC subway system
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gtallen1187
gtallen1187 / boston_neighborhoods.geojson
Created August 14, 2019 16:25
GeoJSON file outlining the boundaries of neighborhoods in Boston
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function fetchDataset(url, cb, crop) {
var http = new XMLHttpRequest();
http.open("GET", url);
http.send();
http.onload = function () {
var result = http.responseText && JSON.parse(http.responseText);
cb && result && cb(result, crop);
};
curl -Ls https://raw.github.com/skycocker/chromebrew/master/install.sh | bash
@gtallen1187
gtallen1187 / mac_script_gems_c_extensions.md
Created May 26, 2019 01:00
Run this mac script to ensure that you can install gems with C extensions properly

Final Steps

Mojave changed the location of header files necessary for compiling C extensions. You might need to run the following command to install pg, nokogiri, or other gems that require C extensions:

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
@gtallen1187
gtallen1187 / Greg's Great Guides: Packages & Libraries.md
Last active May 14, 2020 01:14
Greg's Great Guides: Packages, Libraries, Utilities, & Tools

As a reminder, Greg's Great Guides are intended for beginners and novice-level programmers only. Any type of structured engineering education would likely cover all of these topics in year one (or year zero!).

However, if you have a genuine interest in technology, and would like to spend your free time learning new stuff and building new things, then these guides are for you!

What are you waiting for? Get Going with Greg's Great Guides!

Packages, Libraries, Utilities, & Tools

This guide will walk you through the various installation and configuration steps to ensure that your machine is up to snuff. The packages, libraries, and other tools listed below are simply those that I have found helpful or otherwise valuable.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gtallen1187
gtallen1187 / chrome_apps.md
Created November 22, 2018 02:49
The last remaining chrome apps

The fact that I still love them seems to have almost zero impact on Google decision to slowly phase out "Chrome Apps".

  • August 2016 - Google announces that they will slowly be removing support for Chrome Apps on Windows, OS X, and Linux.
  • December 2017 - Google removes the "Apps" section from the Chrome Web Store.
  • November 2018 - Greg makes this list.

Anyways, here's some leftover URLs I've found.