Skip to content

Instantly share code, notes, and snippets.

View necrobuffalo's full-sized avatar

Adam Barber necrobuffalo

View GitHub Profile
@necrobuffalo
necrobuffalo / keymap.c
Created September 27, 2017 07:35
Planck keymap
// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
// this is the style you want to emulate.
#include "planck.h"
#include "action_layer.h"
#ifdef AUDIO_ENABLE
#include "audio.h"
#endif
#include "eeconfig.h"
@necrobuffalo
necrobuffalo / keymap.c
Created September 27, 2017 07:35
Planck keymap
// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
// this is the style you want to emulate.
#include "planck.h"
#include "action_layer.h"
#ifdef AUDIO_ENABLE
#include "audio.h"
#endif
#include "eeconfig.h"
(sqlalchemy) [11:53:29 PM] azathoth:~/src/misc
% python sqlthing.py
before adding to session: <Thing(id=None, content=None)>
after adding to session: <Thing(id=None, content=None)>
after commit: <Thing(id=1, content=pending)>
(sqlalchemy) [11:53:32 PM] azathoth:~/src/misc
%
import random
import collections
import re
Token = collections.namedtuple('Token', ['type', 'value'])
consonants = "bcdfghjklmnpqrstvwxzy"
vowels = "aeiou"
wordblock = "(C)(C)(C)V(C)(C)(C)(C)(C)"
@necrobuffalo
necrobuffalo / keymap.c
Created March 7, 2017 07:54
Song of Storms partial keymap
#define SONG_OF_STORMS \
Q__NOTE(_D4), Q__NOTE(_F4), W__NOTE(_D5), Q__NOTE(_D4), Q__NOTE(_F4), W__NOTE(_D5), \
HD_NOTE(_E5), Q__NOTE(_F5), Q__NOTE(_E5), Q__NOTE(_F5), Q__NOTE(_E5), Q__NOTE(_C5), W__NOTE(_A4), M__NOTE(_REST,1), \
H__NOTE(_A4), H__NOTE(_D4), Q__NOTE(_F4), Q__NOTE(_G4), WD_NOTE(_A4), M__NOTE(_REST,1), \
H__NOTE(_A4), H__NOTE(_D4), Q__NOTE(_F4), Q__NOTE(_G4), WD_NOTE(_E4),
@necrobuffalo
necrobuffalo / bot.cfg
Last active March 3, 2017 00:05
foodbot
[trello]
api_key=from site
api_secret=from site
token=from oauth
token_secret=from oauth
board=groceries
[notify]
pushbullet_token=from site

Keybase proof

I hereby claim:

  • I am necrobuffalo on github.
  • I am necrobuffalo (https://keybase.io/necrobuffalo) on keybase.
  • I have a public key whose fingerprint is 73F0 FEF7 16D4 3DC9 D2D6 BBD7 65C5 2881 0DB2 BF46

To claim this, I am signing this object:

@necrobuffalo
necrobuffalo / brave_jabber.conf
Created October 25, 2014 20:02
Slack jabber pings
# brave_jabber
# description "An Upstart task to make sure the brave bot is always running.
# author "Emma Barber"
start on startup
script
cd /home/taron/slack_ping
exec /home/taron/.virtualenvs/slack_ping/bin/python echobot.py -j taron_skeldara@allies.bravecollective.com -p noyoucanthavemypassword
@necrobuffalo
necrobuffalo / xmltocsv.py
Created September 19, 2014 04:23
Converting EVEMon XML skill plans to CSV file
import argparse
from bs4 import BeautifulSoup
parser = argparse.ArgumentParser(description='Convert an EVEMon xml plan file to CSV.')
parser.add_argument('infile', type=argparse.FileType('r'), help='the input file')
args = parser.parse_args()
soup = BeautifulSoup(args.infile.read())
args.infile.close()