Skip to content

Instantly share code, notes, and snippets.

@rknLA
rknLA / gist:0e5bdf3bb7ccebb8f82b
Created July 24, 2015 10:01
musicbrainz.work
musicbrainz=# \d+ musicbrainz.work
Table "musicbrainz.work"
Column | Type | Modifiers | Storage | Stats target | Description
---------------+--------------------------+---------------------------------------------------------------+----------+--------------+-------------
id | integer | not null default nextval('musicbrainz.work_id_seq'::regclass) | plain | |
gid | uuid | not null | plain | |
name | character varying | not null | extended | |
type | integer | | plain | |
comment | character varying(255) | not null default ''::character
@rknLA
rknLA / prompt.zsh
Created February 19, 2015 17:07
some things from my zsh prompt config.
365 local -A pc
366 pc[default]='default'
367 pc[date]='cyan'
368 pc[time]='green'
369 pc[host]='Green'
370 pc[user]='cyan'
371 pc[punc]='yellow'
372 pc[line]='magenta'
373 pc[hist]='green'
374 pc[path]='Cyan'
@rknLA
rknLA / scrape_schwab.js
Created January 12, 2015 11:40
The beginnings of a scraper to collect my bank account info.
console.log('Beginning Schwab Scraper...');
var page = require('webpage').create()
, system = require('system')
var SCHWAB_LOGIN_URL = "https://www.schwab.com/public/schwab/client_home"
, JQUERY_URL = "https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"
, SCHWAB_LOGGED_IN_URL = "https://client.schwab.com/Accounts/Summary/Summary.aspx?ShowUN=YES";
var loginTimeout;
@rknLA
rknLA / SHFRdioRequestManager.h
Created December 16, 2014 12:46
SHFRdioRequestManager is a wrapper around the RDAPIRequestDelegate API that exposes a simpler block-callback based API.
//
// SHFRdioRequestManager.h
//
#import <Foundation/Foundation.h>
#import <Rdio/Rdio.h>
typedef void (^RDAPICallback)(id result, NSError *err);
@interface SHFRdioRequestManager : NSObject <RDAPIRequestDelegate>
@rknLA
rknLA / keybase.md
Created November 22, 2014 00:29
keybase.md

Keybase proof

I hereby claim:

  • I am rknLA on github.
  • I am rknla (https://keybase.io/rknla) on keybase.
  • I have a public key whose fingerprint is C408 2108 4F93 B44C 25A6 8089 5987 DDE1 1C0A 6EEE

To claim this, I am signing this object:

@rknLA
rknLA / gist:66f4222e1940bff71c09
Created August 7, 2014 23:10
grepping zsh -x
zsh -x 2>&1 >/dev/null | grep "alias make"
+zgit_preexec_hook:1> [[ 'zsh -x 2>&1 > /dev/null | grep "alias make"' == git * ]]
+zgit_preexec_hook:1> [[ 'zsh -x 2>&1 > /dev/null | grep "alias make"' == * git * ]]
+zsh:2> zsh -x
+zsh:2> grep 'alias make'
@rknLA
rknLA / gist:a6fb89815c7f1277dd2a
Created June 3, 2014 20:35
Noah's Ark in Swift
let 🌍 = "🐶🐺🐱🐭🐹🐰🐸🐯🐨🐻🐷🐽🐮🐗🐵🐒🐴🐑🐘🐼🐧🐦🐤🐥🐣🐔🐍🐢🐛🐝🐜🐌🐞🐙🐚🐠🐟🐬🐳🐋🐄🐏🐀🐃🐅🐇🐉🐎🐐🐓🐕🐖🐁🐂🐲🐡🐊🐫🐪🐆🐈🐩"
var 🚢: String[] = []
for 💕 in 🌍 {
🚢.append(💕 + 💕)
}
🚢
@rknLA
rknLA / MYImageProcessor.m
Last active August 29, 2015 13:57
Original was missing orientation!
- (void)process
{
NSLog(@"Processing Image");
[self extractRawImageData];
//[self sortColumns];
//[self sortRows];
[self reconstituteUIImage];
self.processed = YES;
}
@rknLA
rknLA / conduct.md
Last active December 31, 2015 04:49
draft - Music Hack Day Code of Conduct

** Note: This now lives at https://github.com/musichackday/MHD-Conduct. Please post new comments / submit pull requests there instead of here **

Music Hack Day Code of Conduct

This is a first draft of a Code of Conduct for Music Hack Day events, based on similar codes of conduct, such as the PyCon Code of Conduct and its upstream template from the Geek Feminism wiki and the Ada Initiative.

Because this is a draft, your comments, criticisms, and feedback are appreciated. We would like Music Hack Day to be deliberately and specifically open and

@rknLA
rknLA / gist:7724344
Created November 30, 2013 20:57
double lol
$ node debug sample.js
< debugger listening on port 5858
connecting... ok
break in sample.js:1
1 var Hapi = require('hapi');
2
3 var server = Hapi.createServer('localhost', 4444);
debug> c
< payload: { data: 'hi, i\'m data' }
break in sample.js:8