Skip to content

Instantly share code, notes, and snippets.

View danieltreacy's full-sized avatar

Daniel Treacy danieltreacy

View GitHub Profile
### Keybase proof
I hereby claim:
* I am danieltreacy on github.
* I am dtreacy (https://keybase.io/dtreacy) on keybase.
* I have a public key ASBrgE6lQLsuoec1QAWBCf8gtCLBtbpRaaxA0PaAWi2kIgo
To claim this, I am signing this object:
@danieltreacy
danieltreacy / jvm-companies.md
Created September 26, 2012 02:40
Tech companies/startups migrated to the JVM

Tech companies who have migrated to the JVM

NB: Does not include companies that started with a JVM language. The purpose of this gist is to list the companies that decided to move their stack (or some part of it) to the JVM.

@danieltreacy
danieltreacy / counter-start.rb
Created March 12, 2012 01:03
Start counter
# start the counter
> DebtClock::Counter.instance.start
=> 0
=> 1
=> 2
...
# get the latest count
> DebtClock::Counter.instance.count
=> 5
require 'singleton'
module DebtClock
class Counter
include Singleton
def initialize
@count = 0
end
module DebtClock
class Counter
@@count = 0
def start
Thread.new {
loop do
@@count += 1
@danieltreacy
danieltreacy / pure-preselection
Created August 22, 2011 01:45
Select box pre-selection in PURE
var directive = {
".select-box option@selected": function(arg) {
if (arg.item.someKey = "someValue") { return true }
else { ... }
}
}