Skip to content

Instantly share code, notes, and snippets.

View stephensauceda's full-sized avatar

Stephen Sauceda stephensauceda

View GitHub Profile
@stephensauceda
stephensauceda / next.config.js
Last active April 30, 2018 00:46
Export WordPress Posts to Static HTML with Next.js
const fetch = require('isomorphic-unfetch')
const withSass = require('@zeit/next-sass')
module.exports = withSass({
webpack: (config) => {
config.node = { fs: 'empty' }
return config
},
exportPathMap: async (defaultPathMap) => {
const [postList, projectList, pageList] = await Promise.all([
@stephensauceda
stephensauceda / gist:6efa3c98943ad02cdf8c
Last active September 21, 2017 06:02
Seti Theme for Slack
Slack colors to mimic Seti UI/Syntax Atom theme
#0E1112,#1E2326,#50B4DD,#FFFFFF,#151718,#FFFFFF,#9ECC4E,#CF3D41
@stephensauceda
stephensauceda / gulpfile.babel.js
Created June 11, 2015 23:45
ES6 Gulpfile Example
/*
* Steps
* 1. Rename your gulpfile.js to gulpfile.babel.js
* 2. Add babel to your package.json (npm install -D babel)
* 3. Start writing ES6 in your gulpfile!
*/
import gulp from 'gulp'; // ES6 imports!
import sass from 'gulp-sass';

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@stephensauceda
stephensauceda / gist:5534295
Created May 7, 2013 17:07
Alfred - New Web Project Script
cd ~/Sites
#-----
# Go get my boilerplate from Github
#-----
git clone https://github.com/stephensauceda/html-base.git {query}
cd {query}
#-----
# Get HTML5 Boilerplate .htaccess file