Skip to content

Instantly share code, notes, and snippets.

@casper
casper / prof1.txt
Last active Dec 27, 2019
PuTTY 0.73 MinGW32 gprof run
View prof1.txt
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ms/call ms/call name
31.88 39.37 39.37 _mcount_private
11.17 53.16 13.79 378645098 0.00 0.00 safegrowarray
9.47 64.86 11.70 726534633 0.00 0.00 strbuf_append
5.52 71.67 6.82 makerle
4.19 76.84 5.17 countnode234
View gist:0a92e9a9b40458822cca855ce04f01bf
Receiver Resolver Table:
Non-Data Actions:
com.genymobile.gnirehtet.STOP:
99bea96 com.genymobile.gnirehtet/.GnirehtetControlReceiver
com.genymobile.gnirehtet.START:
99bea96 com.genymobile.gnirehtet/.GnirehtetControlReceiver
Service Resolver Table:
Non-Data Actions:
android.net.VpnService:
View gist:ef15ac2c4b3611c9409682a1fb5b1d12
development: &development
adapter: mysql2
encoding: utf8
database: fat_free_crm_development
pool: 5
username: root
# password:
socket: /var/run/mysqld/mysqld.sock
# Warning: The database defined as "test" will be erased and
@casper
casper / gist:2939417
Created Jun 16, 2012
Testing Ruby Enumerator + yield lookahead
View gist:2939417
$i = 0
o = Object.new
def o.each
yield $i += 1
yield $i += 1
yield $i += 1
end
View gist:1185316
module Fix
module ClassMethods
def fixit
alias_method :fixed, :fixme
end
end
def self.included(base)
base.extend(ClassMethods)
View gist:11574
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml
1-strict.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml:lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<title>Ajax FTL Proxy</title>
<script type='text/javascript'>
function pushDataToParent() {
var responseContainer = document.getElementById('response');
You can’t perform that action at this time.