Skip to content

Instantly share code, notes, and snippets.

View zerobase's full-sized avatar

Hideto Ishibashi zerobase

View GitHub Profile
@jgarber
jgarber / MIT-LICENSE.txt
Created April 4, 2012 14:57
Responsive video
Copyright (c) 2011 ZURB, http://www.zurb.com/
namespace :minifier do
JAR = "/Users/blanders/MyDocs/Library/yuicompressor.jar"
def minify(files)
files.each do |file|
next if file =~ /\.min\.(js|css)/
minfile = file.sub(/\.js$/, ".min.js").sub(/\.css$/, ".min.css")
cmd = "java -jar #{JAR} #{file} -o #{minfile}"
@FabienGandon
FabienGandon / .htaccess for RDF voc
Created September 25, 2008 10:34
content negotiation in .htaccess to serve an RDF voc as HTML or rdf+xml depending on the client request
# Turn off MultiViews
Options -MultiViews
# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
# Rewrite engine setup
RewriteEngine On
RewriteBase /irc/2008/09/25