Skip to content

Instantly share code, notes, and snippets.

@bluefuton
bluefuton / gist:1468061
Created December 12, 2011 16:15
OS X: replace tabs with spaces in all files using expand
find . -name "*.php" | while read line; do expand -t 4 $line > $line.new; mv $line.new $line; done
@corydorning
corydorning / Cross-Browser ::before and ::after pseudo-class polyfill
Last active February 18, 2022 00:24
Cross-Browser ::before and ::after pseudo-class polyfill
/* =============================================================================
CSS Declarations
========================================================================== */
/* ==|== The Standard Way =================================================== */
.foo::before {
/* ...css rules... */
}
@bluefuton
bluefuton / gist:2916321
Last active October 6, 2015 01:58
Start Sublime Text from the terminal
# Add to your .bash_profile
# Check the name of your Sublime app in /Applications (can include version number)
alias sub='open -a "Sublime Text"'
# Source: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=1450
@thealscott
thealscott / gist:3349897
Created August 14, 2012 14:41 — forked from corydorning/Cross-Browser ::before and ::after pseudo-class polyfill
Cross-Browser ::before and ::after pseudo-class polyfill - adapted into mixins for SCSS using modernizr
@mixin after-polyfill(){
.ie7 & {
/* creates <span class="ie-after"></span> */
zoom: expression( this.runtimeStyle.zoom="1", this.appendChild( document.createElement("span") ).className="ie-after" );
}
}
@mixin before-polyfill(){
.ie7 & {
/* creates <span class="ie-before"></span> */
@djm
djm / README.md
Last active March 16, 2023 04:02
Create a Chrome GitHub Repo Search Shortcut