display dialog "Name of the browser?" default answer "Safari" | |
set inp to text returned of result | |
tell application "System Events" | |
if inp is "Google Chrome" then | |
tell application "Google Chrome" to return URL of active tab of front window | |
else if inp is "Safari" then | |
tell application "Safari" to return URL of front document | |
else if inp is "Firefox" then | |
tell application "Firefox" to activate |
/* | |
* edgeDetection | |
* Author: Latrokles - latrokles_at_gmail_dot_com | |
* DISCLAIMER: The Edge Detection algorithm used in this sketch comes from "An | |
* Introduction to Image Processing" by Frederic Patin, which is available at: | |
* http://www.gamedev.net/reference/articles/article2007.asp | |
* | |
* This sketch demonstrates a very simple algorithm for edge detection. | |
* The algorithm iterates through the each pixel in the frame, compares it with | |
* it's right and bottom neighbor, if the distance between the colors is greater |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
Day job: software developer | |
Favorite Python project: ROSpy (Python Libraries for the Robot Operating System) | |
Favorite Conference: Art and Code | |
Python Experience Level: intermediate |
/* | |
* background_shapes.pde | |
* latrokles -- samuraihippo.com | |
* | |
* Some quick tinkering with Processing in an otherwise boring day. The | |
* sketch draws circles of random colors as the mouse gets dragged around, | |
* the diameter of the circle is determined by the difference between the | |
* current mouse position and the previous mouse position so that the faster | |
* and further you move your mouse, the larger the circle will be. | |
* |
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html | |
Hi everyone, I'm Chris Wanstrath. | |
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But | |
then I took a few moments and thought, Wait, why? Why me? What am I supposed | |
to say that's interesting? Something about Ruby, perhaps. Maybe the | |
future of it. The future of something, at least. That sounds | |
keynote-y. | |
(This is the text of the keynote I gave at Startup Riot 2009. Will update when video becomes available.)
Hi everyone, I’m Chris Wanstrath, and I’m one of the co-founders of GitHub.
GitHub, if you haven’t heard of it, has been described as “Facebook for developers.” Which is great when talking about GitHub as a website, but not so great when describing GitHub as a business. In fact, I think we’re the polar opposite of Facebook as a business: we’re small, never took investment, and actually make money. Some have even called us successful.
Which I’ve always wondered about. Success is very vague, right? Probably even relative. How do you define it?
After thinking for a while I came up with two criteria. The first is profitability. We employ four people full time, one person part time, have thousands of paying customers, and are still growing. In fact, our rate of growth is increasing – which means January was our best month so far, and February is looking pretty damn good.
* kill -9 -1 will kill all running processes except init and the process from which it was invoked. | |
* Spring's @transactional isn't... it will fail to rollback if a checked exception is thrown. For example a SLQConnectionException thrown from your connection pool, can result in a leaked session. |