Skip to content

Instantly share code, notes, and snippets.

View wanderingmatt's full-sized avatar
🔍
Searching for my next adventure

Matthew Anderson wanderingmatt

🔍
Searching for my next adventure
View GitHub Profile
@wanderingmatt
wanderingmatt / gulpfile.js
Last active April 17, 2021 18:57
Basic gulpfile that handles serving, watching, compiling, and deploying to GitHub Pages.
const gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
cache = require('gulp-cache'),
concat = require('gulp-concat'),
connect = require('gulp-connect'),
del = require('del'),
ghPages = require('gulp-gh-pages-with-updated-gift'),
imagemin = require('gulp-imagemin'),
imageminPngquant = require('imagemin-pngquant'),
#!/usr/bin/env ruby
branch_name = `git rev-parse --abbrev-ref HEAD`
branch_number_regex = /^(\d+)/
matcher = branch_name.match(branch_number_regex)
branch_number = matcher[1]
if branch_number
path = ARGV[0]
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

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:

#!/usr/bin/env ruby
## WP2TUMBLR: WordPress 2 Tumblr Importing tool
##
## Usage: wp2tumblr [OPTION] WORDPRESS_XML_FILE
##
## Import the WORDPRESS_XML_FILE to a Tumblr blog.
## Provide `--group` option to publish to a group.
## This could take a long time...
##
## To install, download the script and chmod to 755.