Skip to content

Instantly share code, notes, and snippets.

View jeffgca's full-sized avatar

Jeff Griffiths jeffgca

View GitHub Profile
@jeffgca
jeffgca / sof.js
Created June 29, 2012 04:52
Firefox GCLI mdn command prototype
/*
* stackoverflow search command
* use: sof <query>
*/
gcli.addCommand({
name: 'mdn',
description: 'Searches the Mozilla Developer Network',
params: [
{
name: 'query',
@jeffgca
jeffgca / gist:2961793
Created June 20, 2012 19:45 — forked from anonymous/gist:2961792
output of git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short 1.7..1.8rc2
* cfaecce 2012-06-19 | Bug 760233 - contentStyleFile breaks relative paths in stylesheets;r=@ZER0 (cherry picked from commit 1d9f453de5224f77e3a8491c5b4a05726812f6fd) (1.8rc2, source/stabilization) [Will Bamberg]
* 0cef37f 2012-06-06 | Merge pull request #453 from wbamberg/l10n-html (1.8rc1) [wbamberg]
* 2ab2e35 2012-05-24 | Bug 758203: Fix upcoming breakage from bug 553102 flipping __exposedProps__ default behavior. (cherry picked from commit 1472d2ba3b3715004f1f3c489a108a61db548c3e) (1.8b4) [Alexandre Poirot]
* ad99098 2012-06-05 | Bump minVersion on stabilization branch to support the recent Firefox 13 release [Wes Kocher]
* 57b5d7d 2012-05-24 | Bug 730776: Ignore locales from addon-kit package in order to avoid shipping them in xpi. (cherry picked from commit c5663854ce0c7de4d3f319c46e0a4313a6b7606d) (1.8b3) [Alexandre Poirot]
* 62868f7 2012-05-18 | Merge pull request #445 from wbamberg/662606 (1.8b2) [wbamberg]
* 4191dc0 2012-05-17 | Merge pull request #405 from erikvold/bug-745854 [wbamberg]
* 843e6dd 2
var { Cc, Ci } = require("chrome");
var L = console.log;
var pp = function(o) { return JSON.stringify(o,null,' '); };
var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
var gWin = wm.getEnumerator("navigator:browser").getNext();
L(pp(Object.keys(gWin)));
@jeffgca
jeffgca / nightly.sh
Created May 27, 2012 16:35 — forked from anonymous/gist:2814990
shell script for starting Firefox nightly & Gaia
#!/bin/bash
GAIA_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
NIGHTLY="/Applications/FirefoxNightly.app/Contents/MacOS/firefox"
DEBUG=1 make && $NIGHTLY -profile "$GAIA_DIR/profile" -no-remote http://homescreen.gaiamobile.org:8080
# if you don't want to re-do gaia
# $NIGHTLY -profile "$GAIA_DIR/profile" -no-remote http://homescreen.gaiamobile.org:8080
@jeffgca
jeffgca / engagementplan.md
Created March 27, 2012 16:33 — forked from wbamberg/gist:2046453
Jetpack engagement plan

Jetpack Developer Engagement Plan

About the Jetpack Project

Project Summary

The Jetpack project's aim is to make it easy to develop Firefox add-ons using JavaScript, HTML and CSS. It has two products:

  • the Add-on Builder, which is an online IDE for add-on development
  • the Add-on SDK, which is a downloadable SDK for developing add-ons locally
@jeffgca
jeffgca / flask_geventwebsocket_example.py
Created January 2, 2012 06:01 — forked from lrvick/flask_geventwebsocket_example.py
Simple Websocket echo client/server with Flask and gevent / gevent-websocket
from geventwebsocket.handler import WebSocketHandler
from gevent.pywsgi import WSGIServer
from flask import Flask, request, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@jeffgca
jeffgca / jpscripts.sh
Created November 23, 2011 22:18 — forked from anonymous/jpscripts.txt
Bash scripts to drive cfx without having to activate the jetpack environment.
#!/bin/bash
# edit these variables to match your own use case.
PY=`which python`
CFX="$HOME/code/jetpack/addon-sdk/bin/cfx"
#CFX="$HOME/code/jetpack/testing/addon-sdk-1.2b1/bin/cfx"
FF="/Applications/Aurora.app"
P="$HOME/Library/Application\ Support/Firefox/Profiles/b271f03z.Firebug"
$PY $CFX --binary=$FF --profiledir="$P" $@
@jeffgca
jeffgca / maxart_answered.txt
Created November 17, 2011 17:13
Maxart's questions with responses
- Add-on SDK:
Everything but simple to use. Requires command-line interaction to build an add-on for Firefox...
Needs to open Firefox with another Profile... Really?
[Jeff] one design goal of the SDK is that it should integrate easily with existing development
environments, hence the command-line interface. This is a bias of ours. I take it you think we
should ship a GUI tool similar to, say, Google's AppEngine? As well, we have another goal for restart-less testing, hope to ship soon.
- Add-on Builder:
Good idea, but again, requires an add-on to be installed so devs can test their add-ons without
@jeffgca
jeffgca / gist:1282050
Created October 12, 2011 18:12 — forked from pilt/gist:1281299
Stevey's Google Platforms Rant
I was at Amazon for about six and a half years, and now I've been at
Google for that long. One thing that struck me immediately about the
two companies -- an impression that has been reinforced almost daily --
is that Amazon does everything wrong, and Google does everything right.
Sure, it's a sweeping generalization, but a surprisingly accurate one.
It's pretty crazy. There are probably a hundred or even two hundred
different ways you can compare the two companies, and Google is superior
in all but three of them, if I recall correctly. I actually did a
spreadsheet at one point but Legal wouldn't let me show it to anyone,
even though recruiting loved it.
@jeffgca
jeffgca / LICENSE.txt
Created October 2, 2011 10:16 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE