Skip to content

Instantly share code, notes, and snippets.

View karbassi's full-sized avatar
🌱

Ali Karbassi karbassi

🌱
View GitHub Profile
@karbassi
karbassi / index.html
Created October 21, 2010 22:02
How to handle single and double click events separately in javascript.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Single and Double Click</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="the_div"></div>
<span>Double click the block</span>
@andrewle
andrewle / capture.rb
Created July 27, 2010 21:08
Get full screen shots of a list of webpages using webkit2png.py
#!/usr/bin/env ruby
PROJECT_NAME = ""
pages = %w{
... urls to pages go here
}
pages.each_with_index do |url, index|
system("python webkit2png.py -W 1200 -o #{PROJECT_NAME}_#{index} -F #{url}")