Skip to content

Instantly share code, notes, and snippets.

@lann
lann / gist:5446934
Last active December 16, 2015 14:09
module Reqtrace
@trace_file = File.open('/tmp/reqtrace.txt', 'w')
@name_stack = [nil]
@time_stack = [0]
def self.trace(name, &blk)
@name_stack << name
@time_stack << 0
start = Time.now
def help_text():
from textwrap import dedent
print dedent("""
If you do this,
it will print correctly
without looking so ugly in code.""")
help_text()