Skip to content

Instantly share code, notes, and snippets.

use "net/http"
use "json"
actor Main
new create(env: Env) =>
let usernames = env.args.values()
for username in usernames do
Request.create(env).get(username)
end

Keybase proof

I hereby claim:

  • I am sdorunga1 on github.
  • I am stefandorunga (https://keybase.io/stefandorunga) on keybase.
  • I have a public key ASBWz1qRq7Ff_UM0sfZdTwunnCdkmK71pj_Cfu9_JTL-_Ao

To claim this, I am signing this object:

#!/bin/bash
HOMEBREW_INSTALL_URL=https://raw.githubusercontent.com/Homebrew/install/master/install
set -e
function already_in_path {
which $1 > /dev/null;
}
function set_up_ssh_keys {
if [ ! -f "~/.ssh/id_rsa" ]; then
@sdorunga
sdorunga / rps.rb
Created March 10, 2016 10:20
Rock paper scissors
Hand = Struct.new(:name, :trumps) do
def beats?(other_hand); trumps.include?(other_hand.name); end
def draw?(other_hand); name == other_hand.name; end
end
class Game
def self.rock_paper_scissors
new([Hand.new(:rock, [:scissors]), Hand.new(:scissors, [:paper]), Hand.new(:paper, [:rock])])
end
#!/bin/bash
#
# god Startup script for God monitoring tool.
#
# chkconfig: - 85 15
# description: god monitors your system
#
CONF_DIR=/etc/god/*
PID=/var/run/god.pid
@sdorunga
sdorunga / -
Created December 2, 2013 09:11 — forked from anonymous/-
Agency importer script
# run it after XX:05 since rate and availability is scheduled to be updated
billy_blue_ids = ["3883", "3884", "3885", "3887", "3896", "3904", "3942", "3958", "3961", "3962", "3963", "4092", "4300", "5918", "6168", "6169", "6176", "6177", "6184", "6298", "6302", "6441", "6589", "9275", "9655", "9697", "11805", "13475", "13827", "20266", "20267", "20268", "21389", "21398", "21400", "21406", "21440", "21482", "21493", "21494", "21483", "17512", "20528", "20530", "20531", "20532", "20533", "20534", "20535", "20536", "20537", "20538", "20539", "20541", "20542", "20543", "20545", "20546", "20969", "20971", "20972", "20973", "20974", "20975", "20983", "20984", "20986", "20995", "20996", "20998", "21001", "21002", "21004", "21005", "21006", "21007", "21286", "21302", "21303", "21311", "21317", "21335", "21336", "21337", "21338", "21339", "21340", "21341", "21353", "21354", "21358", "21360", "21362", "21364", "21365", "21366", "21367", "21368", "21369", "21390", "21479", "20599", "21331", "21375", "21463", "21464",