Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am flubstep on github.
  • I am flubstep (https://keybase.io/flubstep) on keybase.
  • I have a public key whose fingerprint is 083C CFF6 A70D 3B45 18D5 0C9F 353A BBE0 9573 2CD5

To claim this, I am signing this object:

module['exports'] = function echoHttp (hook) {
var request = require('request');
var ref = hook.params.ref;
if (ref == "refs/heads/master" || ref == "refs/heads/release") {
var head = hook.params.head_commit;
var mergeRegex = /^Merge pull request/;
if (head.message && !mergeRegex.exec(head.message)) {
console.log("Pinging #engineering on commit: " + head.message);
var title = head.message;
module['exports'] = function echoHttp (hook) {
var request = require('request');
var _ = require('lodash');
if (!hook.params.action || hook.params.action !== "closed") {
console.log("No closing action found");
return hook.res.end();
}
if (!hook.params.pull_request.merged) {
console.log("Pull request was not merged");
codes = """
a .-
b -...
c -.-.
d -..
e .
f ..-.
g --.
h ....
i ..
import readlineio as rio
import time
@rio.main
def main():
rio.output("I'm running this from my laptop.")
time.sleep(2)
rio.output("I also added some delay so this looks more fancy.")
time.sleep(2)
rio.choice("Do you like it?").then(respond)
@flubstep
flubstep / gist:0ac78fd05ed927886584621472d95150
Created March 24, 2017 07:33
Preferences.sublime-settings
{
"color_scheme": "Packages/User/SublimeLinter/Solarized (Light) (SL).tmTheme",
"font_size": 14,
"ignored_packages":
[
"Vintage"
],
"line_padding_bottom": 1,
"line_padding_top": 1,
"translate_tabs_to_spaces": true,
{
"pep8_ignore":
[
"E309",
"E501"
],
"anaconda_linter_mark_style": "none",
"anaconda_gutter_theme": "retina"
}
import sys
import logging
logging.basicConfig(filename='esab.log', filemode='w', level=logging.INFO, format='%(message)s')
def invert(b):
return 1 - b
@flubstep
flubstep / BrokenImport.csv
Last active August 11, 2020 16:38
100-line CSV for importing that has some small errors in it
parentEid contactFirstName contactLastName contactPhone contactAddress1 contactCity contactState contactZip contactEmail
1FSzJRK6JsRqZ1 Liuxu Xinmi 346-555-2910 Zhongsan MA 02139 fakecontact+8875284@flubstep.com
1FSzJRK6JsRqZO Liusu Hualu 360-555-8220 Chang'an MA 02139 fakecontact+3496022@flubstep.com
1FSzJRK6JsRqZO Dangma Zhouran 350-555-9847 Zhongsan MA 02139 fakecontact+7641463@flubstep.com
1FSzJRK6JsRqZO Lutai Jizhuge 888-555-5766 Xuzhou MA 02139 fakecontact+5102598@flubstep.com
1FSzJRK6JsRqZO Sunzhouping Cangchao 898-555-1169 Luoyang MA 02139 fakecontact+8174189@flubstep.com
1FSzJRK6JsRqZO Anliang Yunguan 379-555-1270 Luoyang MA 02139 fakecontact+2879490@flubstep.com
1FSzJRK6JsRqZO Xiangpang Xinyu 744-555-2592 Zhongsan MA 02139 fakecontact+7023705@flubstep.com
1FSzJRK6JsRqZO Ningcao Liuyuan 269-555-6208 Zhongsan MA 02139 fakecontact+9413742@flubstep.com
1FSzJRK6JsRqZO Weima Simateng 453-555-8491 Luoyang MA 02139 fakecontact+9826827@flubstep.com
@flubstep
flubstep / SmallImport.csv
Last active August 11, 2020 16:37
100-line import file CSV with correctly formatted data
parentEid contactFirstName contactLastName contactPhone contactAddress1 contactCity contactState contactZip contactEmail
1FSzJRK6JsRqZO Liuxu Xinmi 346-555-2910 Zhongsan MA 02139 fakecontact+8875284@flubstep.com
1FSzJRK6JsRqZO Liusu Hualu 360-555-8220 Chang'an MA 02139 fakecontact+3496022@flubstep.com
1FSzJRK6JsRqZO Dangma Zhouran 350-555-9847 Zhongsan MA 02139 fakecontact+7641463@flubstep.com
1FSzJRK6JsRqZO Lutai Jizhuge 888-555-5766 Xuzhou MA 02139 fakecontact+5102598@flubstep.com
1FSzJRK6JsRqZO Sunzhouping Cangchao 898-555-1169 Luoyang MA 02139 fakecontact+8174189@flubstep.com
1FSzJRK6JsRqZO Anliang Yunguan 379-555-1270 Luoyang MA 02139 fakecontact+2879490@flubstep.com
1FSzJRK6JsRqZO Xiangpang Xinyu 744-555-2592 Zhongsan MA 02139 fakecontact+7023705@flubstep.com
1FSzJRK6JsRqZO Ningcao Liuyuan 269-555-6208 Zhongsan MA 02139 fakecontact+9413742@flubstep.com
1FSzJRK6JsRqZO Weima Simateng 453-555-8491 Luoyang MA 02139 fakecontact+9826827@flubstep.com