Skip to content

Instantly share code, notes, and snippets.

@apotterri
apotterri / Recording Example.md
Last active Jun 20, 2021
Simple recording test case
View Recording Example.md

A simple recording example.

To run:

% APPMAP=true python tst > simple.appmap.json
@apotterri
apotterri / tb.py
Last active Mar 30, 2021
show current stack, only importing sys
View tb.py
import sys
def caller():
def frames():
f = sys._getframe().f_back.f_back
while f is not None:
yield (f.f_code.co_filename, f.f_lineno,
f.f_code.co_name, f.f_locals)
f = f.f_back
View #Querying AppMaps.md
@apotterri
apotterri / upload-appmaps
Last active Jul 23, 2020
Ruby program to upload an AppLand Mapset from CI (Travis).
View upload-appmaps
#!/usr/bin/env ruby
# frozen_string_literal: true
def env_var(key)
var = ENV[key]
if var.nil? || var.empty?
nil
else
var
end
@apotterri
apotterri / .rbenv-gemsets
Last active Jul 16, 2020
appmap before and after
View .rbenv-gemsets
5dbe76a39d2af565facc84e3b49049a2
View keybase.md

Keybase proof

I hereby claim:

  • I am apotterri on github.
  • I am apotterri (https://keybase.io/apotterri) on keybase.
  • I have a public key ASB5kR1Wr_iltGpQTvnTEqsrl2gn4HoynFO8o_P4_yTGygo

To claim this, I am signing this object: