Skip to content

Instantly share code, notes, and snippets.

View latrokles's full-sized avatar
🧗‍♂️
🏐 💻

latrokles latrokles

🧗‍♂️
🏐 💻
  • Seattle
  • 16:43 (UTC -07:00)
View GitHub Profile
@latrokles
latrokles / get_url.scpt
Created February 21, 2023 17:29 — forked from prashanthrajagopal/get_url.scpt
AppleScript to get url from Safari, Firefox and Chrome
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
@latrokles
latrokles / climbing_tactics_techniques.md
Last active August 4, 2016 00:12
[CLIMBING] tactics and techniques

top rope soloing

Can be used to:

  1. rehearse crux sequences
  2. train 'endurance' on outdoor routes
  3. get mileage whenever a belayer cannot be found

Some info:

@latrokles
latrokles / the footgun armory
Created March 23, 2015 07:55
A list to track interesting footguns in programming languages, operating systems, and other techincal stuff.
* 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.
@latrokles
latrokles / hack.sh
Created April 1, 2012 04:39 — forked from erikh/hack.sh
OSX For Hackers
#!/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
#
@latrokles
latrokles / gist:1165039
Created August 23, 2011 12:59 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job: software developer
Favorite Python project: ROSpy (Python Libraries for the Robot Operating System)
Favorite Conference: Art and Code
Python Experience Level: intermediate
/*
* 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
/*
* 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.
*
@latrokles
latrokles / gist:67298
Created February 20, 2009 04:07 — forked from defunkt/gist:6443
# 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.