Skip to content

Instantly share code, notes, and snippets.

View benlilley's full-sized avatar

Ben Lilley benlilley

View GitHub Profile
@darren131
darren131 / gist:3902442
Created October 16, 2012 22:23
Compass sprites
http://thesassway.com/guides
http://leveluptuts.com/tutorials/compass-tutorials
http://www.dontcom.com/post/26884274848/css-preprocessing
http://compass-style.org/help/tutorials/spriting/
http://www.youtube.com/watch?v=Tl6bceyTjFw
http://www.bariswanschers.com/blog/use-sass-and-compass-streamline-your-css-development
@pistachiomatt
pistachiomatt / pop.css
Created August 8, 2012 00:32
Pop effect
.pop {
display: block;
-webkit-animation-name: pop;
-webkit-animation-duration: .6s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: ease-in-out;
}
@-webkit-keyframes pop {
from {
@erikreagan
erikreagan / mac-apps.md
Created August 4, 2012 19:18
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@darren131
darren131 / gist:3051385
Created July 5, 2012 04:33
style.scss
// variables and mixins
@import "variables";
@import "mixins";
// Reset
@import "reset";
// Page structure, etc
@import "scaffolding";
@import "grid";
@darren131
darren131 / arrows.less
Created May 30, 2012 00:25
CSS only arrows in LESS
// HOW TO USE
//
// @direction: up;
// .class {
// .arrow(@direction, #c00, 20px);
// }
//
.arrow(up, @color, @size) {
width: 0;
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@darren131
darren131 / sprite.less
Created April 18, 2012 01:37
Sprite LESS Snippet. Someone else has probably done this already, but I thought I'd share it nevertheless.
@spritePath: '../images/sprite.png';
.sprite(@url: @spritePath, @xpos: 0, @ypos: 0) {
background-image: url(@url);
background-repeat: none;
background-position: @xpos @ypos;
}
@amacneil
amacneil / no_more_msm.php
Created April 5, 2012 03:36
Extract a single ExpressionEngine site from a MSM install
<?php
/*
* Instructions:
* First add your database connection details below.
* Then either upload this script to your server and visit the page,
* or run it using the command line: php no_more_msm.php
*/
// database connection details
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt