Skip to content

Instantly share code, notes, and snippets.

OSS on my mind

Tylor Steinberger TylorS

OSS on my mind
View GitHub Profile
git checkout master
git fetch origin
git pull origin master
git checkout develop
git merge master
git checkout master
git merge --no-ff develop
git push origin master
npm start
axefrog / preprocessor.js
Created Feb 26, 2017
Simple DEV vs PROD preprocessor for JS and TS source code
View preprocessor.js
Preprocessor Directives
// --- OMIT A SINGLE LINE ----------------------------------------------------
log("This line will be excluded from the build"); // ## DEV ##
// --- OMIT A WHOLE BLOCK ----------------------------------------------------
View cleanup
var cleanUp = {
domains: [],
getDomains: async function() {
let results = null;
let page = 0
do {
const response = await fetch(`${page}&pageSize=1000`);
const json = await response.json();