Skip to content

Instantly share code, notes, and snippets.

View jeffgca's full-sized avatar

Jeff Griffiths jeffgca

View GitHub Profile
@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
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 / 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
@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 / server.py
Created July 17, 2012 19:07 — forked from anonymous/gist:3131316
Webapp Servage
#!/usr/bin/env python
import SimpleHTTPServer
import SocketServer
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-p",
"--port",
@jeffgca
jeffgca / server.py
Created November 17, 2012 06:35 — forked from anonymous/gist:4093845
super easy python web server
#!/usr/bin/env python
import SimpleHTTPServer
import SocketServer
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-p",
"--port",
@jeffgca
jeffgca / nativewindow.js
Created November 17, 2012 07:14 — forked from anonymous/gist:4093971
A Jetpack module for mobile
const data = require('self').data;
const menuId;
const utils = require('api-utils/window/utils');
const recent = utils.getMostRecentBrowserWindow();
/**
* opts: an options object that includes a name, an image and a callback.
* note: the image can only be a file or data uri, see bug 802003
*/
@jeffgca
jeffgca / cm.js
Last active December 10, 2015 07:28 — forked from anonymous/gist:4401852
Strawman for improving how context-menu works.
var cm = require('context-menu');
var Item1 = cm.Item({
label: 'Label',
image: data.url('image.png')
});
Item1.on('click', function(context) {
// ...
@jeffgca
jeffgca / blurb.md
Last active December 10, 2015 14:28 — forked from anonymous/gist:4447783
Apps hackday Blurb

Mozilla is hosting a free hack day at the HiVE Vancouver on Saturday January 26, to learn, hack and celebrate the Firefox OS, Mozilla's open source operating system for the mobile web.

If you're a web developer, you’ll be right at home coding apps in HTML5, JavaScript and CSS for the Firefox OS. We’ll help you with everything else, including how to access mobile Web APIs and how to use the Firefox OS Simulator in your desktop browser to view and test your mobile apps.

This App Day is not a competition; it's an opportunity to start creating mobile web apps for Firefox Marketplace and the coming Firefox OS phone. It's also a great opportunity to demo your project for an audience of peers, tech leaders and innovators.

Register on Eventbrite: http://firefox-os-vancouver.eventbrite.com/

Promote on Lanyrd:

@jeffgca
jeffgca / foo.md
Created January 7, 2013 17:56 — forked from janl/gist:4476454
JanD's equality treatise, marked down.

In reply to https://twitter.com/CaseySoftware/status/288324803268579328

We can work at it on all levels. Raise our male kids to see women as equal, get other parents to do the same. Help out in school. Support STEM in school etc.

For JS, we are involved with http://js.opentechschool.org to get newbies going (~50/50 ratio). We are very open and encouraging at @BerlinJS (with varying success, but it is getting better) and we help setting examples at the high end with JSConf EU, who’s CFP has been copied to >10 conferences so far that have used it with success.

There is no one thing is better or we shouldn’t do one because another is better. We need to stop the fucking talking about the effectiveness of any one thing and just pick and do any one of them and hten as much as you can handle and be supportive of others doing the other stuff.

Throwing metaphorical stones at anyone who is doing anything good because you think they should do sometjhing else is the worst thing you can do.