Skip to content

Instantly share code, notes, and snippets.

@rgo
rgo / font faces
Created March 30, 2010 11:42 — forked from javier/font faces
embedding true type fonts in your css
/* Font face generator needed to IE family
* http://www.fontsquirrel.com/fontface/generator
*/
@font-face {
font-family: 'Essays1743Italic';
src: url('Essays1743-Italic.eot');
src: local('☺'), url('Essays1743-Italic.ttf') format('truetype');
}
@rgo
rgo / hide_flash_messages_automagically.js
Created March 15, 2010 15:26 — forked from leehambley/gist:332857
Snippet to hide flash messages automagically with jQuery
<%# From pretty_flash by rpheath (improved by pacoguzman) %>
<% if flash.any? -%>
<script type="text/javascript">
$(function() {
setTimeout(hideFlashes, 5000);
});
var hideFlashes = function() {
$("[id^='flash_']").fadeOut(1500);
# Used to graph results from autobench
#
# Usage: ruby autobench_grapher.rb result_from_autobench.tsv
#
# This will generate three svg & png graphs
require "rubygems"
require "scruffy"
require 'csv'
require 'yaml'