Skip to content

Instantly share code, notes, and snippets.

View imathis's full-sized avatar
🍽️
Hungry for biscuits.

Brandon Mathis imathis

🍽️
Hungry for biscuits.
View GitHub Profile
@imathis
imathis / gist:1218226
Created September 15, 2011 00:37 — forked from henneonrails/gist:1217518
dot files
desc "copy dot files for deployment"
task :copydot do
exclusions = [".", "..", ".DS_Store"]
Dir["#{source_dir}/**/.*"].each do |file|
if (!File.directory?(file) && !exclusions.include?(file))
cp(file, file.gsub(/#{source_dir}/, "#{public_dir}"));
end
end
end
@imathis
imathis / gist:1147044
Created August 15, 2011 15:51 — forked from jm/gist:1146838
Hoedown 2011 Schedule
RUBY HOEDOWN 2011
Day 1 - August 26
-----
8:00 - Registration opens
9:00 - Kickoff with The Improv Effect
10:00 - TorqueBox: A True Application Server for Ruby
@imathis
imathis / gist_tag.rb
Created June 15, 2011 17:58 — forked from chrisjacob/gist_tag.rb
A Liquid tag for Jekyll sites that allows embedding Gists and showing code for non-JavaScript enabled browsers and readers.
require 'cgi'
require 'digest/md5'
require 'net/https'
require 'uri'
module Jekyll
class GistTag < Liquid::Tag
def initialize(tag_name, text, token)
super
@text = text
@imathis
imathis / 3d.scss
Created January 5, 2011 23:23 — forked from chriseppstein/3d.scss
@function shadow-3d($thickness-shadow-color, $splash-shadow-color, $thickness, $angle: 0) {
$shadows: compact();
@if unit($thickness) != px { @warn "$thickness must be passed as a pixel value, eg: 5px." };
@for $i from 1 through $thickness/1px {
$shadows: append($shadows, 0 1px * $i 0 adjust-color($thickness-shadow-color, $lightness: -3.3% * ($i - 1)));
}
@each $values in (
0 $thickness + 1px 1px 0.1,
0 0 $thickness + 5px 0.3,
0 abs($thickness - 2px) 5px 0.2,
!default_border_radius ||= 5px
// Round all borders by amount
=border-radius(!radius = !default_border_radius)
border-radius= !radius
-moz-border-radius= !radius
-webkit-border-radius= !radius
// Round radius at position by amount.
// values for !vert: "top", "bottom"
//**
Example 1:
a.twitter
+sprite-img("icons-32.png", 1)
a.facebook
+sprite-img("icons-32png", 2)
...
Example 2:
a
+sprite-background("icons-32.png")