Skip to content

Instantly share code, notes, and snippets.

Enjoying SoCal "Fall"

Jimmy Wilson jimmynotjim

Enjoying SoCal "Fall"
View GitHub Profile
View Web product guidelines
- simple
- public over private
- personal vanity
- internet is global
- permalinks
- one important item per page
- don't break the browser
- don't be busy with technology
- a medium is not a grande
- break convention for your users
View gist:441842
// selectorSupported lovingly lifted from the mad italian genius, diego perini
function selectorSupported(selector){
var support, link, sheet, doc = document,
root = doc.documentElement,
head = root.getElementsByTagName('head')[0],
impl = doc.implementation || {
lucasfais / gist:1207002
Created Sep 9, 2011
Sublime Text 2 - Useful Shortcuts
View gist:1207002

Sublime Text 2 – Useful Shortcuts (Mac OS X)


⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
gre / easing.js
Last active Oct 25, 2021
Simple Easing Functions in Javascript - see
View easing.js
* Easing Functions - inspired from
* only considering the t value for the range [0, 1] => [0, 1]
EasingFunctions = {
// no easing, no acceleration
linear: t => t,
// accelerating from zero velocity
easeInQuad: t => t*t,
// decelerating to zero velocity
View content-kitchen-sink.html
This is the primary heading and there should only be one of these per page
A small paragraph to <em>emphasis</em> and show <strong>important</strong> bits.
<li>This is a list item
<li>So is this - there could be more
ericrasch / include-tweets.php
Created Mar 15, 2012
How to display your latest tweets in your WordPress site without a plugin
View include-tweets.php
// How to display your latest tweets in your WordPress site without a plugin
// Source:
include_once(ABSPATH . WPINC . '/feed.php');
$username = "EricRasch"; // Just insert the username of the Twitter account you want to display
$feed = "$username.rss"; // Changed the code from to actually use the username variable
$num = 2; // Set the number of Tweets you want to display
CaptainN /
Created Mar 29, 2012
Just touch events for jQuery
// This is a combination of two modified files from jQuery Mobile,
// and
// They were modified to only provide the touch event shortcuts, and
// avoid the rest of the jQuery Mobile framework.
// The normal jQuery Mobile license applies.
// This plugin is an experiment for abstracting away the touch and mouse
// events so that developers don't have to worry about which method of input
// the device their document is loaded on supports.
ericrasch / first-paragraph-class.php
Created Mar 29, 2012
WordPress: Add Class to first Paragraph in WordPress the_content; (add this to the functions.php in your Theme)
View first-paragraph-class.php
/* =BEGIN: Add Class to first Paragraph in WordPress the_content();
---------------------------------------------------------------------------------------------------- */
function first_paragraph($content){
// Testing to see if the content is a Page or Custom Post Type of school, if so, display the text normally (without the class = intro).
if ( is_page() || ('school' == get_post_type() ) ) {
return preg_replace('/<p([^>]+)?>/', '<p$1>', $content, 1);
} else {
return preg_replace('/<p([^>]+)?>/', '<p$1 class="intro">', $content, 1);
View WP - Meta Links List.php
imathis /
Created Jun 27, 2012
Tweetbot can use regular expressions to mute tweets in your timeline and mentions.

Hashtag abuse

Three or more hashtags.


Long hashtags (15+ characters): #hashtagpunchline