Skip to content

Instantly share code, notes, and snippets.

type type type

Beau Gunderson beaugunderson

type type type
Block or report user

Report or block beaugunderson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View shell output
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;
@beaugunderson
beaugunderson / output.txt
Created Oct 16, 2018
timedelta / cProfile repro
View output.txt
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
Verifying my Blockstack ID is secured with the address 12ge7qKh7nekGQE8kaWMMMtsDQBSS8CCY9 https://explorer.blockstack.org/address/12ge7qKh7nekGQE8kaWMMMtsDQBSS8CCY9
@beaugunderson
beaugunderson / index.js
Created Jun 26, 2017
requirebin sketch
View index.js
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
#!/usr/bin/python
# -*- coding: utf-8 -*-
import errno
import os
import shutil
from subprocess import check_output
import arrow
@beaugunderson
beaugunderson / index.js
Created Oct 29, 2016
requirebin sketch
View index.js
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')
@beaugunderson
beaugunderson / index.js
Last active Oct 29, 2016
requirebin sketch
View index.js
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')
@beaugunderson
beaugunderson / index.js
Created Aug 14, 2016
requirebin sketch
View index.js
var ip = require('ip-address');
var address = new ip.Address6('1:2:3:4::/64');
document.write('<pre>');
document.write(address.startAddress().correctForm());
document.write('\n');
document.write(address.endAddress().correctForm());
document.write('</pre>');
View syllables.js
var Rhyme = require('rhyme-plus').Rhyme;
var sentenceTools = require('sentence-tools');
var Twit = require('twit');
var _ = require('lodash');
var T = new Twit(botUtilities.getTwitterAuthFromEnv());
var rhyme = new Rhyme();
function syllables(line) {
View index.js
var _ = require('lodash');
var a = ['meow', 'kittens','birthday_pants'];
var b = ['kittens', 'pants'];
function comparator(x, y) {
return x.indexOf(y) !== -1 || y.indexOf(x) !== -1;
}
var intersection = _.intersectionWith(a, b, comparator);
You can’t perform that action at this time.