View example.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 -u | |
import signal | |
class Runner: | |
def __init__(self): | |
self.stop = False | |
self.previous_handler = signal.signal(signal.SIGINT, self.cb_signal_handler) |
View example.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_thing = SomeThingModel() | |
# type 1 | |
class ModifyThing: | |
@classmethod | |
def format_date(cls, thing): | |
return thing.created.format('MMMM ddd ...') |
View google-metadata.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Message ID <20200331183800.66D2823017CE5B90@becu.org> | |
Created at: Tue, Mar 31, 2020 at 4:38 PM (Delivered after -17996 seconds) | |
From: BECU Credit Union <no-reply@becu.org> | |
To: beau@beaugunderson.com | |
Subject: BECU Account Alert | |
SPF: PASS with IP 64.147.108.52 Learn more | |
DMARC: 'FAIL' Learn more |
View shell output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.5434598344325519e+09 error terminal/output.go:97 Error handling escape sequence: Unknown OSC control sequence: 1337;RemoteHost=beau@theodore | |
github.com/liamg/aminal/terminal.(*Terminal).processInput | |
/Users/beau/go/src/github.com/liamg/aminal/terminal/output.go:97 | |
1.5434598344326131e+09 error terminal/output.go:97 Error handling escape sequence: Unknown OSC control sequence: 1337;CurrentDir=/Users/beau | |
github.com/liamg/aminal/terminal.(*Terminal).processInput | |
/Users/beau/go/src/github.com/liamg/aminal/terminal/output.go:97 | |
1.543459834432895e+09 error terminal/output.go:97 Error handling escape sequence: Unknown OSC control sequence: 1337;ShellIntegrationVersion=5;shell=bash | |
github.com/liamg/aminal/terminal.(*Terminal).processInput | |
/Users/beau/go/src/github.com/liamg/aminal/terminal/output.go:97 | |
1.5434598346229088e+09 error terminal/output.go:97 Error handling escape sequence: Unknown OSC control sequence: 133;C; |
View output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
working: -25200 | |
broken: no exception | |
broken: 2177280001.000001 | |
*** PROFILER RESULTS *** | |
broken (repro.py:18) | |
function called 1 times | |
5 function calls in 0.000 seconds |
View gist:ee0a9b3e8aa46df08e0f7dc04d09999e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 12ge7qKh7nekGQE8kaWMMMtsDQBSS8CCY9 https://explorer.blockstack.org/address/12ge7qKh7nekGQE8kaWMMMtsDQBSS8CCY9 |
View index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ip = require('ip-address'); | |
function subnetFromNetmask(netmask) { | |
var mask = new ip.Address6(netmask); | |
return mask.getBitsBase2().match(/^(1+)/)[1].length; | |
} | |
function addressFromAddressAndNetmask(address, netmask) { | |
return new ip.Address6(address + '/' + subnetFromNetmask(netmask)); |
View sort_downloads.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import errno | |
import os | |
import shutil | |
from subprocess import check_output | |
import arrow |
View index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var parsimmon = require('parsimmon'); | |
function lexeme(parser) { | |
return parser.skip(parsimmon.optWhitespace); | |
} | |
var Keyword = parsimmon.alt( | |
parsimmon.string('appt'), | |
parsimmon.string('provider'), | |
parsimmon.string('hba1c') |
View index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var parsimmon = require('parsimmon'); | |
function lexeme(parser) { | |
return parser.skip(parsimmon.optWhitespace); | |
} | |
var Keyword = parsimmon.alt( | |
parsimmon.string('appt'), | |
parsimmon.string('provider'), | |
parsimmon.string('hba1c') |
NewerOlder