Skip to content

Instantly share code, notes, and snippets.

DavidWells / netlify.toml
Last active Feb 11, 2021
All Netlify.toml & yml values
View netlify.toml
ID = "Your_Site_ID"
# Settings in the [build] context are global and are applied to all contexts unless otherwise overridden by more specific contexts.
# This is the directory to change to before starting a build.
base = "project/"
# NOTE: This is where we will look for package.json/.nvmrc/etc, not root.
# This is the directory that you are publishing from (relative to root of your repo)
rdyson /
Last active Sep 4, 2018
Install `git` on macOS 10.14 Mojave beta without installing brew

Install git on Mojave without brew

I was able to set up git without installing brew on Mojave (10.14 Beta 18A293u) as follows:

  1. Install XCode Beta (build 10L176w) from
  2. Install Command Line Tools (macOS 10.14) for Xcode 10 Beta from
  3. Set developer directory by running sudo xcode-select -s /Applications/ in the terminal
  4. Verify that git works
udezekene / O'Reilly Design Books (Free).md
Last active Feb 10, 2021 — forked from augbog/Free O'Reilly
Download the just released O'Reilly Design Books for free without e-mail signup.
View O'Reilly Design Books (Free).md

Free O'Reilly Design Books and convenient script to just download them.

HUGE thanks to O'Reilly for making this resource free. Visit the design page if you want to learn more about the design resources. Also, they do have FREE resources for other topics like: Data, IoT, Programming, Security, Web Development, and WebOps.

Thanks @augbog for the initial gist. If you are a developer or looking for software engineering books, headover to the source of this fork.

How to use:

  1. Take the file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x should do it)
adewale / gist:6e2baa8fdea65108b257fe9fbdae3b77
Created Aug 23, 2016
Common misconceptions about Progressive Web Apps
View gist:6e2baa8fdea65108b257fe9fbdae3b77
Common misconceptions about Progressive Web Apps
They have to be SPAs.
They have to live at pwa.*.com
They have to be mobile only.
They're not allowed to be responsive.
They have to use material design.
They only work in chrome.
They don't work in safari or on iOS.
They have to look like your android app.
ashander / unfavorite.js
Last active Jan 21, 2021
Delete all your favorites (unfavorite or unlike every tweet) on (thx to @JamieMason and @b44rd for inspiring this)
View unfavorite.js
// 1. Go to
// 2. Keep scrolling to the bottom repeatedly until all your favs are loaded.
// 3. Run this in your console (open in chrome by View > Developer > JavaScript Console)
// Notes: this may take a while if you have a lot of favs/likes
// you can only access your most recent ~2000 likes.
// inspired by
ireade / opera-mini-detect.js
Last active Feb 27, 2020
Detect if Opera Mini/Mobile is in Extreme or High Savings Mode
View opera-mini-detect.js
// Check if current browser is Opera
var isOpera = window.opera | window.opr | ( navigator.userAgent.indexOf(' OPR/') > -1 ) | ( navigator.userAgent.indexOf(' Coast/') > -1 ) | ( navigator.userAgent.indexOf(' OPiOS/') > -1 );
// Check if the Opera browser is Opera Mini or Opera Mobile in regular mode (called High Savings Mode)
var isOperaHigh = (navigator.userAgent.indexOf('OPR/') > -1) && (navigator.userAgent.indexOf('Mobile') > -1) && (navigator.userAgent.indexOf('Presto/') < 0);
// Check if the Opera browser is Opera Mini in Extreme Savings Mode
var isOperaExtreme = (navigator.userAgent.indexOf('Opera Mini/') > -1) && (navigator.userAgent.indexOf('Presto/') > -1);
danharper / background.js
Last active Mar 3, 2021
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
View background.js
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
bomberstudios /
Last active Oct 16, 2020
A list of Sketch plugins hosted at GitHub, in no particular order.
dypsilon /
Last active Mar 2, 2021
A badass list of frontend development resources I collected over time.
View Install Package Control for Sublime Text 3 Beta
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
git clone git:// Package\ Control
cd Package\ Control
git checkout python3
# restart Sublime Text 3 and you should have Package Control working