Skip to content

Instantly share code, notes, and snippets.

View beaugunderson's full-sized avatar
type type type

Beau Gunderson beaugunderson

type type type
View GitHub Profile
@beaugunderson
beaugunderson / bot-ally-code-of-conduct.md
Last active August 29, 2015 14:10
#botally code of conduct

#botally code of conduct

based on the #nodejs code of conduct by @izs

tl;dr If you’re a mean butt you get kicked out. This is not negotiable.

  • Sexist, heteronormative, racist, and other offensive remarks are not allowed. (Cursing is allowed, but never targeting another user, and never in a hateful or sexually explicit manner.)
  • Remarks that make any of the ops go “Hm, that’s inappropriate”, whether on the above list or not: also not allowed.
  • You get a warning.
  • If the warning is not taken seriously, you might get a second sterner warning in PM, if you’re lucky, and the op is feeling generous, and this is the first time. But don’t count on that.

vaporfave

  • vaporfave currently only creates its own images, it doesn't take images as input (though this is planned)
  • some percentage of the time vaporfave @mentions an image bot like @Lowpolybot to get a new take on one image
  • it then (always, currently) retweets the result
  • for Lowpolybot specifically i now append the #noRT tag to the original image

plzrevisit

i have another bot that would make for a good conversationalist though (plzrevisit); i will probably need to add a failsafe or max thread length but maybe we should give it a try now and see what happens? :)

Keybase proof

I hereby claim:

  • I am beaugunderson on github.
  • I am beaugunderson (https://keybase.io/beaugunderson) on keybase.
  • I have a public key whose fingerprint is 329A E8D9 A1E2 F15E 76CB 3ED5 EEA4 FBC3 EBAC 4045

To claim this, I am signing this object:

@beaugunderson
beaugunderson / Default (OSX).sublime-keymap
Created January 23, 2014 23:22
Sublime Text macros for converting to and from 2 and 4 space indentation
[
{
"keys": ["ctrl+2"],
"command": "run_macro_file",
"args": {
"file": "Packages/User/to-2.sublime-macro"
}
},
{
"keys": ["ctrl+4"],
import os
from contextlib import contextmanager
from fabric.api import env, hide, local
@contextmanager
def mysql_password(database):
contents = """
[client]
#!/usr/bin/env python2.7
import json
import sys
try:
log = json.loads(sys.stdin.read())
except:
print "Couldn't parse."
@beaugunderson
beaugunderson / turtle.js
Last active December 22, 2015 08:18
Playing with the ctx in @tmcw's turtle
turtle(function (t) {
ctx.lineWidth = 3;
var fns = [];
[0, 35, 70, 105].forEach(function (a) {
[0, -90, 180, 90, 180].forEach(function (off) {
fns.push(function (t) {
// Originally I just wanted to avoid dense black lines interfering with my ability
// to read the text as I was typing but then figured why not play with opacity
@beaugunderson
beaugunderson / index.js
Created August 29, 2013 20:42
requirebin sketch
var exifParser = require('exif-parser');
var $ = require('jquery-browserify');
var doc = document.documentElement;
doc.ondragover = function () {
return false;
};
doc.ondragend = function () {
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rollcall-vote PUBLIC "-//US Congress//DTDs/vote v1.0 20031119 //EN" "http://clerk.house.gov/evs/vote.dtd">
<?xml-stylesheet type="text/xsl" href="http://clerk.house.gov/evs/vote.xsl"?>
<rollcall-vote>
<vote-metadata>
<majority>R</majority>
<congress>113</congress>
<session>1st</session>
<committee>U.S. House of Representatives</committee>
#!/bin/bash
echo "Gathering 60s of data for process ID $1"
dtrace -n "profile-997/pid == $1 && arg1/{
@[jstack(50, 2048)] = count(); } tick-30s { exit(0); }" > $1.out
echo "Filtering..."
c++filt < $1.out > $1-demangled.out