I hereby claim:
- I am siong1987 on github.
- I am siong1987 (https://keybase.io/siong1987) on keybase.
- I have a public key whose fingerprint is B417 9ED4 3C5B 752D 597C 1B37 CA86 BF84 658B E43B
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>all</key> | |
<array> | |
<dict> | |
<key>calling_code</key> | |
<string>+93</string> | |
<key>country</key> |
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'rufus/verbs' # gem rufus-verbs | |
require 'json' # gem json or json_pure | |
require 'growl' # gem growlnotifier (and rubycocoa) | |
def get_password key |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.username.customizedgrowl</string> | |
<key>Program</key> | |
<string>/usr/local/bin/twitter</string> | |
<key>LowPriorityIO</key> | |
<true/> |
#!/usr/bin/ruby | |
require 'yaml' | |
require 'logger' | |
require 'rubygems' | |
require 'net/sftp' | |
APP = '/path/to/your/rails/app' | |
LOG_FILE = '/home/log/database.log' | |
TIMESTAMP = '%Y%m%d%H%M%S' |
-module(helloweb). | |
-export([start/0, stop/0]). | |
start() -> | |
mochiweb_http:start([ | |
{name, ?MODULE}, | |
{ip, any}, | |
{port, 6500}, | |
{loop, fun(Req) -> | |
Req:ok({"text/plain", "Hello, world"}) |
from twisted.web import resource, server | |
from twisted.internet import reactor | |
import sys | |
class RootResource(resource.Resource): | |
def render_GET(self, request): | |
return "Hello, world" |
import tornado.httpserver | |
import tornado.ioloop | |
import tornado.web | |
class MainHandler(tornado.web.RequestHandler): | |
def get(self): | |
self.write("Hello, world") | |
application = tornado.web.Application([ | |
(r"/", MainHandler), |
app = lambda { |env| [200, { 'Content-Type' => 'text/html' }, 'Hello, world'] } | |
run app |
var | |
PARALLEL_CONNECTS = 10, | |
http = require('http'), | |
sys = require('sys'), | |
connectionCount = 0, | |
messageCount = 0; | |
lastMessages = 0; | |
function addClient() { |