Skip to content

Instantly share code, notes, and snippets.

View TylorS's full-sized avatar
🍕
OSS on my mind

Tylor Steinberger TylorS

🍕
OSS on my mind
View GitHub Profile
var cleanUp = {
domains: [],
getDomains: async function() {
let results = null;
let page = 0
do {
const response = await fetch(`https://prerender.io/api/cached-pages?page=${page}&pageSize=1000`);
const json = await response.json();
@axefrog
axefrog / preprocessor.js
Created February 26, 2017 17:22
Simple DEV vs PROD preprocessor for JS and TS source code
/*
Preprocessor Directives
=======================
// --- OMIT A SINGLE LINE ----------------------------------------------------
log("This line will be excluded from the build"); // ## DEV ##
// --- OMIT A WHOLE BLOCK ----------------------------------------------------
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