Skip to content

Instantly share code, notes, and snippets.

@jedp
jedp / hgrc
Created May 16, 2014 02:50
hgrc
[ui]
username = Jed Parsons <[email protected]>
[diff]
# git diff is required so binary files don't break
git = 1
showfunc = True
unified = 8
[defaults]
@jedp
jedp / zshrc
Created May 16, 2014 02:32
zshrc
#!/usr/bin/env zsh
# Completions and autoload {{{
# note - you can get a clean config using compinstall and zsh-newuser-install
zstyle ':completion:*' completer _expand _complete _correct
zstyle ':completion:*' completions 4
zstyle ':completion:*' glob 1
zstyle ':completion:*' group-name ''
zstyle ':completion:*' ignore-parents parent pwd
@jedp
jedp / B2G-Flame.md
Last active August 29, 2015 14:01
Setting up the B2G project for Flame
@jedp
jedp / gist:4bd21e7de0f881dbd1a0
Last active August 29, 2015 14:01
mathjax test

Some math: \( \del \cdot \vec{B} = 0 \)

Some more math:

x = {-b \pm \sqrt{b^2-4ac} \over 2a}

--type-add=js=.jsm,.sjs
--type-add=css=.sass,.less,.scss
--ignore-dir=node_modules
--ignore-dir=log
--ignore-dir=build
--smart-case
--sort-files
--color
--follow
--group
Contacts Notes
==============
Discussions
-----------
philikon:
- https://groups.google.com/group/mozilla.dev.webapi/browse_thread/thread/4ee893ec78d50bab
- https://groups.google.com/forum/#!topic/mozilla.dev.webapi/O9NvczNs54M/discussion
- Example code: https://github.com/philikon/webcontacts
@jedp
jedp / gist:8347479
Last active January 2, 2016 18:59
NB Men's Walking Shoes or Year a Pope Died
New Balance Men's Waking Shoes: 577, 659, 665, 706, 756, 959, 968, 978, 985, 156
Popes' deaths: 579, 590, 615, 657, 707, 757, 872, 897, 974, 984, 1492
Both: 847, 928
Source: http://www.mcsweeneys.net/articles/new-balance-mens-walking-shoe-or-the-year-a-pope-died
Author: Blair Munhofen http://www.mcsweeneys.net/authors/blair-munhofen
@jedp
jedp / dijkstra-p63.py
Created January 8, 2014 05:57
Dijkstra, /Notes on Structured Programming/, pp 63-66 (On Grouping and Sequencing)
#!/usr/bin/env python2
"""
Dijkstra, /Notes on Structured Programming/, pp 63-66
The problem is to construct a program generating non-empty sequnces of 0s, 1s,
and 2s, without non-empty, element-wise equal, adjoining subsequences,
generating those lines in alphabetical order until a sequence of length 100
(i.e., of 100 digits) has been generated.
The start of the list of sequences to be generated is:
@jedp
jedp / gist:5733043
Last active December 18, 2015 05:29
Re-deploy l10n svn
cd locale
svn up
CONFIG_FILES=../config.json ./scripts/l10n-update.js
CONFIG_FILES=../config.json ./scripts/compress
forever restartall
@jedp
jedp / gist:5550357
Created May 9, 2013 20:30
Push preferences to b2g device

Create a file called user.js:

pref('toolkit.identity.debug', true);
pref('toolkit.identity.uri', 'https://login.dev.anosrep.org'); // for example

Push it to the device: