I hereby claim:
- I am nelsonjchen on github.
- I am nelsonchen (https://keybase.io/nelsonchen) on keybase.
- I have a public key whose fingerprint is F5F2 90E6 0377 DA52 3F60 302E 979A E9AB DC3F A1F5
To claim this, I am signing this object:
package main | |
import "net" | |
func echoServer(c net.Conn) { | |
for { | |
buf := make([]byte, 512) | |
nr, err := c.Read(buf) | |
if err != nil { | |
return |
#!/bin/sh | |
node ~/code/sr/esc-pos-jison/run.js $1 |
Installing rake 10.3.1 | |
Installing i18n 0.6.9 | |
Installing json 1.8.1 | |
Installing minitest 5.3.3 | |
Installing thread_safe 0.3.3 | |
Installing tzinfo 1.1.0 | |
Installing activesupport 4.1.0 | |
Installing builder 3.2.2 | |
Installing erubis 2.7.0 | |
Installing actionview 4.1.0 |
nelson@damacy:~/code | |
% brew --config 04/25/14 - 12:12PM | |
HOMEBREW_VERSION: 0.9.5 | |
ORIGIN: https://github.com/Homebrew/homebrew.git | |
HEAD: 127a89a32fc2f6fe758e8cbf1d74f92e5819c55e | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: 8-core 64-bit haswell | |
OS X: 10.9.2-x86_64 | |
Xcode: 5.1.1 |
if [ "$(whoami)" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="magenta"; fi | |
local return_code="%(?..%{$fg_bold[red]%}:( %?%{$reset_color%})" | |
PROMPT=' | |
%{$fg_bold[cyan]%}%n%{$reset_color%}%{$fg[yellow]%}@%{$reset_color%}%{$fg_bold[blue]%}%m%{$reset_color%}:%{${fg_bold[green]}%}%~%{$reset_color%}$(git_prompt_info) | |
%{${fg[$CARETCOLOR]}%}%# %{${reset_color}%} ' | |
RPS1='${return_code} %W - %@' |
I hereby claim:
To claim this, I am signing this object:
require 'formula' | |
class Libvirt < Formula | |
homepage 'http://www.libvirt.org' | |
url 'http://libvirt.org/sources/libvirt-1.2.1.tar.gz' | |
sha256 'bc29b5751bf36753c17e2fdbb75e70c7b07df3d9527586d3426e90f5f4abb898' | |
option 'without-libvirtd', 'Build only the virsh client and development libraries' | |
depends_on 'pkg-config' => :build |
# | |
# Place this code to your .profile, .bashrc, .bash_profile or whatever | |
# | |
program_exists () { | |
type "$1" &> /dev/null ; | |
} | |
if program_exists go; then |
import pycurl | |
class Response(object): | |
""" utility class to collect the response """ | |
def __init__(self): | |
self.chunks = [] | |
def callback(self, chunk): | |
self.chunks.append(chunk) | |
def content(self): | |
return ''.join(self.chunks) |
import pycurl | |
class Response(object): | |
""" utility class to collect the response """ | |
def __init__(self): | |
self.chunks = [] | |
def callback(self, chunk): | |
self.chunks.append(chunk) | |
def content(self): | |
return ''.join(self.chunks) |