I hereby claim:
- I am ibigbug on github.
- I am byw (https://keybase.io/byw) on keybase.
- I have a public key ASAML1Fyh7jgPdIdWBtCsEY3cuKRT_Y8Xd-laA8i_PMFtAo
To claim this, I am signing this object:
import gdb | |
class HeapdumpCmd(gdb.Command): | |
"""Do a heap dump""" | |
def __init__(self): | |
gdb.Command.__init__(self, "mdump", gdb.COMMAND_STACK, gdb.COMPLETE_NONE) | |
def invoke(self, _arg, _from_tty): |
I hereby claim:
To claim this, I am signing this object:
require "formula" | |
class Thrift < Formula | |
homepage "http://thrift.apache.org" | |
stable do | |
url "http://archive.apache.org/dist/thrift/0.9.1/thrift-0.9.1.tar.gz" | |
#sha1 "dc54a54f8dc706ffddcd3e8c6cd5301c931af1cc" | |
# These patches are 0.9.1-specific and can go away once a newer version is released |
import socket | |
HOST = '' | |
PORT = 9999 | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.bind((HOST, PORT)) | |
s.listen(1) | |
while 1: |
#!/bin/bash | |
main() { | |
echo 1 | |
python sig.py & | |
echo 2 | |
} | |
main 2>&1 | tee -a a.log |
package safemap | |
import ( | |
"fmt" | |
) | |
const ( | |
remove commandAction = iota | |
end | |
find |
'use strict'; | |
var fs = require('fs') | |
var read = function(name) { | |
return function(cb) { | |
fs.readFile(name, {encoding: 'utf-8'}, cb) | |
} | |
} |
from flask import Flask | |
from flask import request | |
from flask import jsonify | |
from flask import send_from_directory | |
app = Flask(__name__) | |
@app.route('/', defaults=dict(filename=None)) |
import sys | |
""" | |
A simple and powerful `Brainfuck` interpreter implementation in Python | |
Steal from: http://blog.csdn.net/redraiment/article/details/7483062 | |
""" | |
def _gen_array(length): | |
return [0 for i in range(0, length)] |
function flatten(input) { | |
'use strict'; | |
if (!Array.isArray(input)) // need polyfill | |
return input; | |
var ret = []; | |
(function inner(input, ret) { | |
if (input.length === 0) | |
return ret; | |
var car = input.shift(0); |