Skip to content

Instantly share code, notes, and snippets.


Cole Townsend ColeTownsend

View GitHub Profile
View product_generator.rb
# encoding: utf-8
# @(#)product_generator.rb 1.00 29-Nov-2011 16:38
# Copyright (c) 2011 Jim Pravetz. All Rights Reserved.
# Licensed under the MIT license (
# Description: A generator that creates product, products and
# ingredients pages for jekyll sites. Uses a JSON data
# file as the database file from which to read and
View Facebook-Paper-Hamburger-Menu.markdown

Facebook Paper Hamburger Menu

Title of this pen also found under “things you’d never have heard 10 years ago.”

A Pen forked by Cole Townsend on CodePen.


View Fancy-Text-Inputs.markdown
# Install native apps
# Usage: `./`
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
brew cask install github
brew cask install dropbox
brew cask install slack
brew cask install google-chrome
View _bg-color.scss
@mixin bg-color($color, $darken) {
// local variables
$background-color: darken($color, $darken);
$lightness: lightness($background-color);
// calculate text color variable
@if $lightness < 50 {
$text-color: lighten($background-color, 15);
$background-color: desaturate($background-color, 7);
background: $background-color;
View gist:26b236669b0b23ab1b88
# be sure to include your extra aliases. cheers to thoughtbot/laptop for this line below
# [[ -f ~/.aliases.local ]] && source ~/.aliases.local
alias update='brew update && brew upgrade && gem update && npm update -g && rbenv rehash && brew cleanup'
ColeTownsend / gulpfile.js
Last active Aug 29, 2015 — forked from martinwolf/gulpfile.js
Jekyll, Browsersync and Gulp
View gulpfile.js
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
notify = require('gulp-notify'),