Skip to content

Instantly share code, notes, and snippets.

View ilkelma's full-sized avatar

A.M. Knight ilkelma

View GitHub Profile
@ilkelma
ilkelma / BinaryHeap.coffee
Created December 19, 2012 06:04
Jumpstart Node.js' BinaryHeap implementation rewritten in coffeescript
exchange = require './exchange'
module.exports = BinaryHeap
BinaryHeap = (scoreFunction, options) ->
@content = []
if options
@options = options
else
@options = {}
@scoreFunction = scoreFunction

Keybase proof

I hereby claim:

  • I am ilkelma on github.
  • I am amknight (https://keybase.io/amknight) on keybase.
  • I have a public key ASAMGnY66aXVm1M602D5GJ2y4uQiG3RQybMvS5DRHdXgugo

To claim this, I am signing this object:

@ilkelma
ilkelma / fix-slowness.rb
Created September 11, 2018 16:42
interview coding exercise
#!/usr/bin/env ruby
passenger_status = %x( ./passenger-status.rb )
lines = passenger_status.split("*")
# lines = passenger_status.match /Uptime.*CPU/m
# puts lines
# /Uptime.*CPU/