Skip to content

Instantly share code, notes, and snippets.

View richardvenneman's full-sized avatar
🆒

Richard Venneman richardvenneman

🆒
View GitHub Profile
@tdreyno
tdreyno / config.rb
Created October 10, 2011 18:23
Middleman localization idea
langs = Dir["data/lang_*.yml"].map { |file| File.basename(file).gsub("lang_", "") }
# Option A, file all files in a folder, make them all localized
Dir["source/localizable/**"].each do |file|
# Convert source/localizable/template.html.erb to localizable/template.html
path = file.split("source/").last.gsub(".erb", "")
langs.each do |lang|
page path.gsub("localizable", lang), :proxy => path, :ignore => true do
@lang = lang
@markupboy
markupboy / html5video.sh
Created February 8, 2011 15:43
automated conversion of a file to all three html5 compatible video formats - h.264, ogg, and webm
#!/bin/sh
####################################
# Output file for HTML5 video #
# Requirements: #
# - handbrakecli #
# - ffmpeg #
# - ffmpeg2theora #
# #
# usage: #

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables