Skip to content

Instantly share code, notes, and snippets.

View lepittenger's full-sized avatar

Lauren Levin (Pittenger) lepittenger

View GitHub Profile
@lepittenger
lepittenger / Preferences.sublime-settings
Created September 17, 2014 16:57
Sublime Text Preferences
{
"auto_complete_delay": 0,
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Pastels on Dark.tmTheme",
"copy_with_empty_selection": false,
"detect_slow_plugins": false,
"draw_white_space": "all",
"font_face": "Ubuntu Mono",
"font_options": "subpixel_antialias",
"font_size": 14.0,
body, html {
-webkit-font-smoothing: antialiased;
text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
}
@lepittenger
lepittenger / javascript_resources.md
Last active August 29, 2015 14:10 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@lepittenger
lepittenger / css_resources.md
Last active August 29, 2015 14:10 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@lepittenger
lepittenger / config.rb
Created November 20, 2014 22:26
Create a source map with Compass
sourcemap = true
@lepittenger
lepittenger / README.txt
Last active August 29, 2015 14:16
Creating a Button Shortcode
How to use
[button link='http://linktosomething.com' color='orange']My Button Text![/button]
@lepittenger
lepittenger / wp-config.php
Created June 23, 2015 20:07
Email Only Editors with Revisionary Plugin
define( 'SCOPER_MONITOR_ROLES', 'editor' );
@lepittenger
lepittenger / functions.php
Created June 23, 2015 20:12
Enqueue Google Font Weights
add_action( 'wp_enqueue_scripts', 'enqueue_google_fonts' );
function enqueue_google_fonts() {
// Get the theme data, so we can handle stylesheet versioning in one place
$theme = wp_get_theme();
// Enqueue the Google fonts
$font_url = add_query_arg( 'family', urlencode( 'Cabin:400,700' ), '//fonts.googleapis.com/css' );
wp_enqueue_style( 'google_font_cabin', $font_url, array(), $theme->Version );
@lepittenger
lepittenger / exceptions.php
Last active August 29, 2015 14:25
Lauren Learns PHP
<?php
// Object Oriented PHP Basics
try {
// this is where the code we want to test goes
} catch (Exception $e) {
// Inspect $e
$e->getMessage(); // gets message that was passed into the exception constructor when the exception was thrown
@lepittenger
lepittenger / gist:3942366
Created October 23, 2012 23:07 — forked from kenmickles/products.php
Array of sample product data
$products = array(
array(
'name' => 'Walrus T-Shirt',
'description' => 'Lorem ipsum adipisicing sint consequat do veniam ea. Lorem ipsum dolore sit eu dolore ut est eiusmod.',
'image' => 'http://www.cottonable.com/wp-content/uploads/2010/01/walrus-cartoon-tee-t-shirt-animal-illustration-apparel-clothing-mustache-fuzzy-ink-men.jpg',
'price' => 12.00,
'sizes' => array(
'Small',
'Medium',
'Large',