Skip to content

Instantly share code, notes, and snippets.

View TedAvery's full-sized avatar

Ted Avery TedAvery

View GitHub Profile
@TedAvery
TedAvery / .nginxconfig
Created May 31, 2022 06:53
Yoast affiliate redirect for Affilimate
location /go/ {
rewrite ^/go/(.*)$ /go/index.php?id=$1&args=$args last;
}
@TedAvery
TedAvery / .eslintrc
Created September 24, 2015 00:33
My current default .eslintrc, based roughly on this: https://github.com/meteor/meteor/blob/devel/scripts/admin/eslint/.eslintrc but with some fixes on outdated parameters
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
@TedAvery
TedAvery / gulpfile.js
Last active August 30, 2015 07:03 — forked from wesbos/gulpfile.js
FAST Browserify + Reactify + Babelify + Uglify + Sourcemaps
var babelify = require('babelify');
var browserify = require('browserify');
var buffer = require('vinyl-buffer');
var gulp = require('gulp');
var gutil = require('gulp-util');
var notify = require('gulp-notify');
var source = require('vinyl-source-stream');
var sourcemaps = require('gulp-sourcemaps');
var uglify = require('gulp-uglify');
var watchify = require('watchify');
@TedAvery
TedAvery / example.js
Created September 24, 2013 09:26
Welcome to your first Gist! Gists are simple code reminders. Whenever you come across a piece of code you think might be useful later on, save it as a Gist. With GistBox, you can also tag the Gist with a label. This is especially useful for keeping them organized by language, project or purpose. For more info about GistBox, visit: http://www.gi…
// log an object to the browser console
console.log({ text: "foobar" });