Skip to content

Instantly share code, notes, and snippets.

require 'formula'
class Macvim < Formula
homepage 'http://code.google.com/p/macvim/'
url 'https://github.com/b4winckler/macvim/tarball/snapshot-66'
version '7.3-66'
sha1 'd11696f7089688fa96a45fc57410c60f6ca5a394'
head 'https://github.com/b4winckler/macvim.git', :branch => 'master'
@ravasthi
ravasthi / color-management-01.scss
Created October 24, 2011 18:03
Color management
$old-copper : #6f452b;
$tuscany : #c8653a;
$hurricane : #94847c;
$bone : #e5dbc7;
$pattens-blue : #dde7f3;
$rain-forest : #696f2b;
$lochinvar : #46948d;
$jacarta : #4b2b6f;
$fire : #8a3528;
$azure : #37649b;
@ravasthi
ravasthi / compass-01.html
Created October 24, 2011 18:07
Compass will change your life
<style type="text/css">
.clearfix:after
{
/*clearfix styles here*/
}
#sidebar,
#content
{
float: left
@ravasthi
ravasthi / back-button-cache-01.conf
Created October 24, 2011 18:58
Browser back button cache
Cache-Control: no-cache, max-age=0, must-revalidate, no-store
@ravasthi
ravasthi / ios5-fixed-positioning.html
Created October 28, 2011 06:08
iOS 5 MobileSafari fixed-positioning + JavaScript scroll bug
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>iOS fixed positioning/JS scroll test</title>
<style type="text/css" media="screen">
html
@ravasthi
ravasthi / html5-placeholder.html
Created December 3, 2011 00:11
HTML5 placeholder
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HTML5 Placeholder</title>
<style type="text/css" media="screen">
html
@ravasthi
ravasthi / markup.html
Created December 6, 2011 23:33
Add retina graphics to your website
<div id="page">
<header>
<a class="home" href="/"><div class="logo">&nbsp;</div></a>
<nav>
<a class="gallery" href="gallery.html">Gallery</a>
<a class="pricing" href="pricing.html">Pricing</a>
<a class="contact" href="mailto:hello@mycompany.com">Contact</a>
</nav>
</header>
</div> <!-- /#page -->
@ravasthi
ravasthi / favicon.html
Created January 7, 2012 17:53
Favicon code
<!-- Favicons and touch icons -->
<!-- For retina-display iPads -->
<link href="/assets/images/apple-touch-icon-xlarge.png" rel="apple-touch-icon-precomposed" sizes="144x144" type="image/png"/>
<!-- For retina-display iPhones -->
<link href="/assets/images/apple-touch-icon-large.png" rel="apple-touch-icon-precomposed" sizes="114x114" type="image/png"/>
<!-- For iPad 1 -->
<link href="/assets/images/apple-touch-icon-medium.png" rel="apple-touch-icon-precomposed" sizes="72x72" type="image/png"/>
<!-- For iPhone 3G, iPod Touch and Android -->
<link href="/assets/images/apple-touch-icon-small.png" rel="apple-touch-icon-precomposed" type="image/png"/>
<!-- For Nokia -->
@ravasthi
ravasthi / Rakefile
Created February 14, 2012 19:30
Jekyll Rakefile modifications
require "rubygems"
require "rake"
require "fileutils"
SOURCE = "."
CONFIG = {
'themes' => File.join(SOURCE, "_includes", "themes"),
'layouts' => File.join(SOURCE, "_layouts"),
'posts' => File.join(SOURCE, "_posts"),
'post_ext' => "md"
@ravasthi
ravasthi / postmore.rb
Created February 15, 2012 20:09
Adding "read more" to Jekyll
module Jekyll
module PostMore
def postmorefilter(input, url, text)
m = /(?<morestring><!--\s*more\s*-->)/.match(input)
if m
input.split(m[:morestring]).first + "<p class=\"more\"><a href=\"#{url}\">#{text}</a></p>"
else
input
end
end