Skip to content

Instantly share code, notes, and snippets.

.embed-container {
position: relative;
padding-bottom: 56.25%; /* 16/9 ratio */
padding-top: 30px; /* IE6 workaround*/
height: 0;
overflow: hidden;
}
.embed-container iframe {
position: absolute;
top: 0;
#!/bin/bash
# Create the template
read -d '' template <<- EOF
<!DOCTYPE html>
<html>
<head>
<title>HTML6 - The Spec That Brings Us Freedom</title>
<meta name="description" content="HTML5 was a great leap forward for web developers, however there is a missing void that HTML5 has yet to fix and that void is truly semantic markup.">
<link rel="stylesheet" type="text/css" href="style.css" />
@zacparker
zacparker / hack.sh
Created July 8, 2012 23:46 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/3073461/hack.sh | sh
#
@zacparker
zacparker / github.css
Created June 26, 2012 22:23 — forked from andyferra/github.css
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@zacparker
zacparker / bended-shadow.css
Created May 10, 2012 01:51 — forked from nrrrdcore/bending-shadow.css
Simple Bended-Shadow CSS: Create the Bended Photo Effect without writing a million divs.
.bended-shadow {
position: relative;
width: 500px;
margin: 200px auto;
}
.bended-shadow::before, .bended-shadow::after {
content: '';
position: absolute;
width: 60%;
/**
* This method give you a Login URL for Facebook Connect
*
* @param String callback_URL defaults to MOBILE_WEB_URL
*
* @return String return URL for facebook authorization dialog
*/
public static function facebookConnectURL($callback_URL = MOBILE_WEB_URL) {
global $apikey;
if (self::isLoggedIn()) {
@zacparker
zacparker / gist:2153379
Created March 21, 2012 21:48
libiconv error installing php
This file has been truncated, but you can view the full file.
me@￿/usr/lib￿ > ￿brew install -v /usr/local/LibraryPHP/Formula/php.rb
==> Downloading http://www.php.net/get/php-5.3.10.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php-5.3.10
/usr/bin/tar xf /Library/Caches/Homebrew/php-5.3.10
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file ext/tidy/tidy.c
==> ./configure --prefix=/usr/local/Cellar/php/5.3.10 --disable-debug --with-config-file-path=/usr/local/etc --with-config-file-scan-dir=/usr/local/etc/php5/conf.d --with-iconv-dir=/usr --enable-dba --with-ndbm=/usr --enable-exif --enable-soap --enable-sqlite-utf8 --enable-wddx --enable-ftp --enable-sockets --enable-zip --enable-pcntl --enable-shmop --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-mbstring --enable-mbregex --enable-zend-multibyte --enable-bcmath --enable-calendar --with-openssl=/usr --with-zlib=/usr --with-bz2=/usr --with-ldap --with-ldap-sasl=/usr --with-xmlrpc --with-kerberos=/usr --with-libxml-dir=/usr/local/Cellar/libxml2/2.7.8 --with-xsl=/usr -
jQuery(function(){
jQuery('.lcp_catlist li a')
//Set up the imgs for the green overlay
.find('img').css({
position:'relative',
zIndex:'1',
height: '120px',
width: '120px'
})
//Back to the <a>s
<!-- New Post Form -->
<div id="postbox">
<form id="new_post" name="new_post" method="post" action="">
<p><label for="submitter">Submitted By</label><br />
<input type="text" id="submitter" value="" tabindex="1" size="20" name="submitter" />
</p>
<p><label for="email">Email Address</label><br />
<input type="text" id="email" value="" tabindex="2" size="20" name="email" />
</p>
<p><label for="title">Song Title</label><br />