Skip to content

Instantly share code, notes, and snippets.

@bwinton
bwinton / -
Created February 26, 2016 16:07
Adding client.mk options from /Users/bwinton/Programming/firefox/mozilla-central/.mozconfig:
AUTOCONF=/usr/local/Cellar/autoconf213/2.13/bin/autoconf213
AUTOCLOBBER=1
MOZ_OBJDIR=/Users/bwinton/Programming/firefox/objdir-mozilla-central
OBJDIR=/Users/bwinton/Programming/firefox/objdir-mozilla-central
FOUND_MOZCONFIG=/Users/bwinton/Programming/firefox/mozilla-central/.mozconfig
cd /Users/bwinton/Programming/firefox/objdir-mozilla-central
/Users/bwinton/Programming/firefox/mozilla-central/configure
*** Fix above errors and then restart with "/Applications/Xcode.app/Contents/Developer/usr/bin/make -f client.mk build"
@bwinton
bwinton / permutations.js
Created December 14, 2015 19:47
Some utility functions for adventofcode.com
/*
* This is a JavaScript Scratchpad.
*
* Enter some JavaScript, then Right Click or choose from the Execute Menu:
* 1. Run to evaluate the selected text (Cmd-R),
* 2. Inspect to bring up an Object Inspector on the result (Cmd-I), or,
* 3. Display to insert the result in a comment after the selection. (Cmd-L)
*/
var permArr = [],
Verifying that +bwinton is my blockchain ID. https://onename.com/bwinton
-- HUMAN RESOURCE MACHINE PROGRAM --
start:
INBOX
COPYTO 0
JUMPN negative
positive:
JUMPZ end
OUTBOX
@bwinton
bwinton / Quick save as PXON.jstalk
Last active October 17, 2015 14:44
An Acorn Plugin to save files as PXON.
/*
How to install this plugin:
1) Choose Acorn's Help ▸ Open Acorn's App Support Folder menu item.
2) Place this script in the Plug-Ins folder (and make sure it ends with .jstalk)
3) Restart Acorn. The plugin will now show up in the Filter menu.
ACScriptMenuTitle=Convert to PXON
ACShortcutKey=p
ACShortcutMaskKey=command control
ACIsActionKey=true
@bwinton
bwinton / index.html
Last active August 29, 2015 14:24 — forked from mbostock/.block
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
margin: 0;
}
</style>
<body>
@bwinton
bwinton / console.log
Created July 10, 2015 17:30
Add-on SDK selection error.
Shumway is registered
console.error: context-search:
Message: TypeError: window.getSelection is not a function
Stack:
addSelectionListener@resource://gre/modules/commonjs/sdk/selection.js:345:19
@resource://gre/modules/commonjs/sdk/selection.js:409:1
@resource://context-search/index.js:5:17
run@resource://gre/modules/commonjs/sdk/addon/runner.js:145:19
startup/</<@resource://gre/modules/commonjs/sdk/addon/runner.js:86:7
Handler.prototype.process@resource://gre/modules/Promise-backend.js:920:23
-- MySQL dump 10.13 Distrib 5.5.40, for debian-linux-gnu (x86_64)
--
-- Host: advocacy-ro-vip.db.phx1.mozilla.com Database: sentiment
-- ------------------------------------------------------
-- Server version 5.6.17-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
@bwinton
bwinton / stacktrace.t
Created July 8, 2015 20:39
UA server stacktrace.
"Traceback (most recent call last):
File "/Users/bwinton/Programming/web/user-advocacy/flask/useradvocacy/utils.py", line 47, in json_error response = view(*args, **kwargs)
File "/Users/bwinton/Programming/web/user-advocacy/flask/useradvocacy/data/views.py", line 58, in telemetry_stats_api ret = telemetry_stats(args)
File "/Users/bwinton/Programming/web/user-advocacy/flask/useradvocacy/data/telemetry.py", line 679, in telemetry_stats return json.jsonify(ret) #TODO(rrayborn): throw code: , 200
File "/Users/bwinton/Programming/web/user-advocacy/flask/lib/python2.7/site-packages/flask/json.py", line 238, in jsonify indent=indent),
File "/Users/bwinton/Programming/web/user-advocacy/flask/lib/python2.7/site-packages/flask/json.py", line 126, in dumps rv = _json.dumps(obj, **kwargs)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 250, in dumps sort_keys=sort_keys, **kw).encode(obj)
File "/usr/local/Cellar/python/2.7.
bwinton:blog/ $ ls -alR themes
total 0
drwxrwxr-x 3 root admin 102 21 Feb 15:38 .
drwxrwxr-x 17 root admin 578 8 Mar 20:23 ..
drwxrwxr-x 4 root admin 136 21 Feb 15:38 latte
themes/latte:
total 8
drwxrwxr-x 4 root admin 136 21 Feb 15:38 .
drwxrwxr-x 3 root admin 102 21 Feb 15:38 ..