Skip to content

Instantly share code, notes, and snippets.

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
--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
@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}

@jedp
jedp / B2G-Flame.md
Last active August 29, 2015 14:01
Setting up the B2G project for Flame
@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 / hgrc
Created May 16, 2014 02:50
hgrc
[ui]
username = Jed Parsons <jedp@mozilla.com>
[diff]
# git diff is required so binary files don't break
git = 1
showfunc = True
unified = 8
[defaults]
@jedp
jedp / .mozconfig
Created May 19, 2014 18:06
.mozconfig
. $topsrcdir/browser/config/mozconfig
# Define where build files should go. This places them in the directory
# "obj-ff-dbg" under the current source directory
mk_add_options MOZ_OBJDIR=../build_mc
# -s makes builds quieter by default
# -j4 allows 4 tasks to run in parallel. Set the number to be the amount of
# cores in your machine. 4 is a good number.
mk_add_options MOZ_MAKE_FLAGS="-s -j6"
@jedp
jedp / about_triangle_project_2.rb
Created August 9, 2014 22:47
Heroku koans: syntax error in triangle project 2?
# http://koans.heroku.com/en/about_triangle_project_2
#
# XXX why does the second TriangleError.new cause a syntax error
# in the heroku web app, but not in my irb repl!?
class TriangleError < Exception
end
def triangle(a, b, c)
sides = [a, b, c]
@jedp
jedp / about_proxy_object_project.rb
Last active August 29, 2015 14:05
Create a proxy object class
# Answer to a ruby koan:
# http://koans.heroku.com/en/about_proxy_object_project
# Project: Create a Proxy Class
#
# In this assignment, create a proxy class (one is started for you
# below). You should be able to initialize the proxy object with any
# object. Any messages sent to the proxy object should be forwarded
# to the target object. As each message is sent, the proxy should
# record the name of the method send.
@jedp
jedp / .vimrc
Created August 12, 2014 02:57
.vimrc
if version < 704
" if we are somehow running a version lower than 7.4,
" something's wrong, so just stop processing this file.
finish
endif
" auto reload vimrc after edit
autocmd! bufwritepost .vimrc source %
" vi? is it even possible to run original vi anymore?