Skip to content

Instantly share code, notes, and snippets.

View zeekay's full-sized avatar
💎
👋

z zeekay

💎
👋
View GitHub Profile
@zeekay
zeekay / rawr.py
Created February 6, 2012 10:10 — forked from Ivoz/rawr.py
import sys
import os
import fcntl
import gevent
from gevent import socket, queue
if __name__ == "__main__":
fcntl.fcntl(sys.stdin, fcntl.F_SETFL, os.O_NONBLOCK)
q = queue.Queue()
def rea():
# get status
> dfs
dotfiles 178
emacs 15
ssh 40
vim 131+
vimrc | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
zsh 178
#!/usr/bin/env python
from bottle import get, run, static_file
@get('/<path:path>')
def callback(path):
if not path:
path = 'index.html'
return static_file(path, root='.')
run(host='0.0.0.0', port=8000)
function fn1() {}
function fn2() {}
function fn3() {}
function jsListener(fn) {
var interface = {
fn1: fn1,
fn2: fn2,
fn3: fn3
}
require 'formula'
class MacvimCustom < Formula
homepage 'http://code.google.com/p/macvim/'
url 'https://github.com/b4winckler/macvim/tarball/snapshot-64'
version '7.3-64'
md5 '5bdc0bc618b3179130f846f8d0f81283'
head 'https://github.com/b4winckler/macvim.git', :branch => 'master'
{
// enforce
"curly": false,
"forin": false,
// relax
"eqnull": true,
"evil": true,
// globals
require 'formula'
class Grep < Formula
homepage 'http://www.gnu.org/software/grep/'
url 'http://ftpmirror.gnu.org/grep/grep-2.12.tar.xz'
mirror 'http://ftp.gnu.org/gnu/grep/grep-2.12.tar.xz'
md5 '8d2f0346d08b13c18afb81f0e8aa1e2f'
depends_on 'pcre'
var bigint = require('bigint');
function calculatePi(N) {
var i = 0,
k = 0,
k1 = 1,
ns = 0,
a = bigint(0),
d = bigint(1),
this.x = 42
this.y = 11
console.log(y);
› ping 224.0.0.1
PING 224.0.0.1 (224.0.0.1): 56 data bytes
64 bytes from 192.168.1.22: icmp_seq=0 ttl=64 time=0.129 ms
64 bytes from 192.168.1.14: icmp_seq=0 ttl=64 time=0.264 ms
64 bytes from 192.168.1.8: icmp_seq=0 ttl=255 time=0.312 ms
64 bytes from 192.168.1.19: icmp_seq=0 ttl=64 time=0.505 ms
64 bytes from 192.168.1.17: icmp_seq=0 ttl=64 time=0.620 ms
64 bytes from 192.168.1.16: icmp_seq=0 ttl=64 time=0.633 ms
64 bytes from 192.168.1.15: icmp_seq=0 ttl=64 time=103.631 ms
64 bytes from 192.168.1.6: icmp_seq=0 ttl=64 time=108.384 ms