Skip to content

Instantly share code, notes, and snippets.

View jimmynotjim's full-sized avatar
☀️
Enjoying SoCal "Fall"

Jimmy Wilson jimmynotjim

☀️
Enjoying SoCal "Fall"
View GitHub Profile
@jimmynotjim
jimmynotjim / custom-list.scss
Created June 14, 2012 17:04
Custom Ordered List Mixins in SCSS
// This is a snipit from a post I wrote up detailing the process. Check it out if you want to learn more
// https://jimmynotjim.snipt.net/create-a-custom-ordered-list-in-css-and-sass/
// Basic mixin to prefix each li w/ it's list number
@mixin custList {
counter-reset: item;
list-style: none;
& > li {
&::before {
@jimmynotjim
jimmynotjim / more-mute-regex.md
Created July 19, 2012 14:37 — forked from imathis/tweetbot-mute-regex.md
Tweetbot can use regular expressions to mute tweets in your timeline and mentions.

##Simply annoying Tweets

Annoyingly extended words (4+ of the same letter in a phrase): OOOOHHHHMMMMYYYYGGGGOOOODDDD

([a-z])/1{4}

Tweet w/ just a single hashtag: #omgthissucks

^ *#[^ ]+$
@jimmynotjim
jimmynotjim / Description
Created July 25, 2012 18:25
WP Meta Box
I'm trying to get this reusable Meta Box to work, but when I include the cases for each type it breaks my entire site returning a server error. Any ideas what I'm doing wrong? The code is from this post http://wp.tutsplus.com/tutorials/reusable-custom-meta-boxes-part-1-intro-and-basic-fields/
@jimmynotjim
jimmynotjim / gist:3291471
Created August 8, 2012 02:15
Another equal height columns script
// equalize height for content area with sidebar
var equalize = Math.max(
$('.main').height(),
$('.sidebar').height()
);
$('.content').height(equalize);
@jimmynotjim
jimmynotjim / gist:3426896
Created August 22, 2012 15:42
Often used scripts in WP Enqueue
/* BEGIN: Scripts
---------------------------------------------------------------------------------------------------- */
function load_my_scripts() {
// Latest JQuery
wp_deregister_script( 'jquery' );
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js');
wp_enqueue_script('jquery');
@jimmynotjim
jimmynotjim / Preferences.sublime-settings
Last active June 1, 2016 15:42
Current ST2 User Settings
{
"bold_folder_labels": true,
"close_windows_when_empty": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"detect_indentation": true,
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
"dump.rdb"
@jimmynotjim
jimmynotjim / Package Control.sublime-settings
Last active June 1, 2016 15:44
Currently Installed ST2 Packages
{
"auto_upgrade": false,
"auto_upgrade_last_run": null,
"in_process_packages":
[
],
"installed_dependencies":
[
"0_package_control_loader",
"bz2"
@jimmynotjim
jimmynotjim / index.html
Created August 28, 2012 14:13
Couldn't sleep so I ported my buddy Fyza's latest dribbble shot to css.
<div class="single-title">
<a href="http://dribbble.com/14eleven"><img src="http://dribbble.s3.amazonaws.com/users/4950/avatars/original/image.jpeg?1336502746" /></a>
<h1>Orange Ribbon Logo</h1>
<div class="byline">
<span class="author">by <a href="http://dribbble.com/14eleven">Fyza Hashim</a></span>
<span class="post-date">Aug 27, 2012</span>
</div>
</div>
<a href="http://dribbble.com/shots/705097-Orange-Ribbon-Logo"><div class="shot"><span>Awesome</span><span>Website</span><span>Title</span></div></a>
@jimmynotjim
jimmynotjim / gist:3666470
Created September 7, 2012 13:59
Use Modernizr to conditionally use Columnizer.js when css columns aren't supported
<script type="text/javascript">
//
// Requires Modernizr, jquery, and columnizer.js
// http://modernizr.com (Requires a production version, demo doesn't include yep/nope)
// http://jquery.com
// http://welcome.totheinter.net/columnizer-jquery-plugin/
//
// Replace [url], [target], and [options] w/ your specific needs
//
// selectorSupported lovingly lifted from the mad italian genius, diego perini
// http://javascript.nwbox.com/CSSSupport/
function selectorSupported(selector){
var support, link, sheet, doc = document,
root = doc.documentElement,
head = root.getElementsByTagName('head')[0],
impl = doc.implementation || {