a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
function active-window-id { | |
echo `xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}'` | |
} | |
# end and compare timer, notify-send if needed | |
function notifyosd-precmd() { | |
if [ ! -z "$cmd" ]; then | |
cmd_end=`date +%s` | |
((cmd_time=$cmd_end - $cmd_start)) | |
fi |
user = User.find(1) | |
site = Site.new | |
site.url = "http://www.google.com" | |
site.name = "Google" | |
user.sites << site | |
if user.save | |
'cool' |
File.foreach( "dictionary.txt" ) do |line| | |
md = line.match(/\A([A-Z]+)/) | |
puts md[0] if md | |
end |
<table style="float: left; margin-left: 20px;"> | |
<% if @user == current_user %> | |
<caption>My Holidays</caption> | |
<thead> | |
<tr> | |
<th>Start Date</th> | |
<th>End Date</th> | |
<th>Description</th> | |
<th>State</th> | |
<th>Type</th> |
<li> | |
<%= ('a'.ord + answer_counter).chr >) <%= answer.content %> | |
</li> |