Skip to content

Instantly share code, notes, and snippets.

View ColeTownsend's full-sized avatar

Cole Townsend ColeTownsend

View GitHub Profile
/* This variable is for demonstration only, but the naming convention is a shorthand for:
** $globalVar-spacingVar-baseline
*/
$g-s-baseline: 23px;
/* You could imagine different variables following the same pattern, for example:
** $g-c-blue (global, color, blue)
** $l-f-sans (local/themed, font, sans-serif)
*/
#!/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.
require 'growl'
module Jekyll
class GrowlGenerator < Generator
safe false
def generate(site)
Growl.notify 'Building...', :title => 'Jekyll'
end
end
require 'growl'
module Jekyll
class GrowlPreHook < Hook
safe false
sequence :pre
def run(site)
Growl.notify 'Building...', :title => 'Jekyll'
end
@alicial
alicial / recent-tumblr-posts.js
Created August 5, 2012 17:03
How to Display Recent Posts in Tumblr
$(function() {
var url = '/rss';
var $list = $('#recent-posts');
$.ajax({
url: url,
type: 'GET',
dataType: 'xml',
success: function(data) {
var $items = $(data).find('item');
$items.each( function() {
@jakiestfu
jakiestfu / iTunes.js
Created October 11, 2012 18:03
iTunes Search API
var iTunes = (function() {
var endpoint = 'http://itunes.apple.com/search',
searchOptions = {
term: '',
country: 'US',
media: '',
entity: '',
attribute: '',
callback: 'iTunes.end',
@ColeTownsend
ColeTownsend / webdev-tools.md
Created October 15, 2012 05:13 — forked from poteto/webdev-tools.md
Web tools directory
@qrush
qrush / Gemfile
Last active December 10, 2015 21:38
Simple Rakefile and Gemfile for using SCSS and CoffeeScript with Jekyll without plugins
source 'https://rubygems.org'
gem 'jekyll'
gem 'maruku'
gem 'rake'
gem 'sass'
gem 'coffee-script'
@christianboyle
christianboyle / chrome-extensions-jan-2013.mkd
Created January 21, 2013 19:03
I don't like having the bookmarks bar visible in Chrome. It takes up too much room and looks ugly. Chrome extensions, on the other hand, sit next to the omnibox and have their own icons (which show active/inactive states and secondary options). This seems far better to me, and I end up using them way more often than bookmarklets (which are only …

Adobe Edge Inspect Used while working on mobile/responsive sites to view natively on iPhone, updates in real time. https://chrome.google.com/webstore/detail/adobe-edge-inspect/ijoeapleklopieoejahbpdnhkjjgddem

Benchwarmer This has replaced my pinned Dribbble tab. "New tab" extension, no URL bar icon, transforms your new tab's background into a list of Dribbble popular/everyone/debut/following (you pick) shots. https://chrome.google.com/webstore/detail/benchwarmer-the-dribbble/lhdjhhpjicomphhjpehdhjenbaamdpnn

Bitly Used with custom .htaccess rule and vanity domain to shorten links with 2 clicks.

<a href="https://twitter.com/share" class="twitter-share-button tweet" data-text="Formic Co - We're making forms dead simple" data-via="FormicCo" data-hashtags="DeadSimpleForms">
<span class="count">0</span>
<span class="message">Tweet</span>
</a>