Skip to content

Instantly share code, notes, and snippets.

View BuddyLReno's full-sized avatar
🍄
Waluigi is my homie.

Buddy Reno BuddyLReno

🍄
Waluigi is my homie.
View GitHub Profile
@jmmcduffie
jmmcduffie / SassMeister-input.scss
Created November 18, 2013 22:56
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@mixin calc($property, $value, $fallback) {
#{$property}: $fallback;
#{$property}: -webkit-calc(#{$value});
#{$property}: calc(#{$value});
}
@chooh
chooh / config.ru
Created December 28, 2010 15:48
Simple Rack web server for static files with index.html
# This is the root of our app
@root = File.expand_path(File.join(File.dirname(__FILE__), "www"))
run Proc.new { |env|
# Extract the requested path from the request
req = Rack::Request.new(env)
index_file = File.join(@root, req.path_info, "index.html")
if File.exists?(index_file)
# Rewrite to index