Skip to content

Instantly share code, notes, and snippets.

@tschmidt
tschmidt / CSS3_Clock.html
Created January 14, 2011 17:25
A clock made using CSS3 techniques and a little bit of JS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CSS 3 clock face</title>
<style type='text/css'>
* {
margin: 0;
padding: 0;
@tschmidt
tschmidt / Prompt (ZSH)
Created October 24, 2010 06:59
Prompt
PROMPT='%{$fg[cyan]%}%c $(rvm_prompt_info) %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}
%{$fg_bold[red]%}➜ %{$reset_color%}'
# Convert string keys to symbols for a hash
class Hash
def symbolize_keys
self.replace(self.inject({}) { |h,(k,v)| h[k.to_sym] = v; h })
end
end