a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
#!/usr/bin/env ruby | |
# A quick and dirty implementation of an HTTP proxy server in Ruby | |
# because I did not want to install anything. | |
# | |
# Copyright (C) 2009-2014 Torsten Becker <torsten.becker@gmail.com> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the | |
# "Software"), to deal in the Software without restriction, including | |
# without limitation the rights to use, copy, modify, merge, publish, |
(function () { | |
var r = /{(\w+)}/g; | |
window._ = function (s, d) { | |
if(!s) | |
return ""; | |
if(!d) | |
return s; | |
return s.replace(r, function (c, p) { |
require 'net/http' | |
require 'uri' | |
def download(url) | |
Thread.new do | |
thread = Thread.current | |
body = thread[:body] = [] | |
url = URI.parse url | |
Net::HTTP.new(url.host, url.port).request_get(url.path) do |response| |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
hr: | |
errors: | |
messages: | |
expired: "je istekao, molimo zatražite novi" | |
not_found: "nije pronađeno" | |
already_confirmed: "je već potvrđen, molimo pokušajte se prijaviti" | |
not_locked: "nije zaključan" | |
not_saved: | |
one: "1 greška sprečava snimanje %{resource}:" | |
few: "%{count} greške sprečavaju snimanje %{resource}:" |
#!/usr/bin/env python | |
import os | |
import random | |
import time | |
import platform | |
snowflakes = {} | |
try: | |
# Windows Support |
This article is now published on my website: Prefer Subshells for Context.