View cross-browser-inline-block.css
/* Source: http://css-tricks.com/snippets/css/cross-browser-inline-block/ */ | |
li { | |
display: -moz-inline-stack; | |
display: inline-block; | |
vertical-align: top; | |
zoom: 1; | |
*display: inline; | |
} |
View gist:2497771
/* H5BP image replacement: http://nicolasgallagher.com/another-css-image-replacement-technique/ */ | |
.ir { | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
} |
View gist:2498745
/* http://css-tricks.com/fade-image-within-sprite/ */ | |
/* HTML - <a href="#" class="arrow">Arrow<span></span></a> */ | |
/* CSS */ | |
.arrow { | |
display: inline-block; | |
position: relative; | |
text-indent: -9999px; |
View gist:2519776
<!doctype html> | |
<html> | |
<head> | |
<title>Responsive image test</title> | |
<meta charset="utf-8"/> | |
</head> | |
<body> | |
<div id="browser"></div> | |
View index.html
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Papercut · CodePen</title> | |
<style> |
View index.html
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Papercut · CodePen</title> | |
<style> | |
/* General Set Up Styles */ |
View gist:3524441
# Import sql dump into database | |
cat dump.sql | mysql -u[username] -p[password] [database-name] | |
# MySQL dump | |
mysqldump -u[username] -p[password] [database-name] > /var/backups/dump.txt |
View gist:3609369
# Merge from remote to local (exclude .svn folders) | |
rsync -av --exclude '.svn' [username]@[server]:/[path-to-folder]/[folder] ./ | |
--progress | |
# Use this flag to show progress | |
# ./ means merge into the current folder (it needs to exist!) | |
# Reverse paths to go from local to remote |
View gist:3609371
# -R recursively all + read & write | |
chmod -R a+rw [folder]/ |
View gist:3664262
# Basically moves a file | |
mv [old-file-name] [new-file-name] |
OlderNewer