Skip to content

Instantly share code, notes, and snippets.

// Code written by Bryan Clark - merely pasted into a gist by Roland Tanglao
// Licenced under the Mozilla Public License, http://www.mozilla.org/MPL/MPL-1.1.html
// This code which is a JetPack for Mozilla Firefox doesn't work! It's prototype and proof of concept only
// See spec at https://wiki.mozilla.org/Thunderbird/Support/GetSatisfaction/Accelerator
var TOPICS = [];
var url = "http://www.getsatisfaction.com/mozilla_messaging/topics.rss"
$.get( url, function(xml){
var items = $(xml).find("item");
-- Exception object --
+ (string) The config file XML does not contain an email account configuration.
*
-- Exception object --
+ _message (string) ''
+ stack (string) 355 chars
+ code (number) 0
+ uri (string) 'http://autoconfig.gmail.com/mail/config-v1.1.xml'
+ message (string) ''
+ toString (function) 3 lines
@bwinton
bwinton / gist:4260457
Created December 11, 2012 17:26
update the time every 5 seconds.
var line;
var future = new Date(Date.parse("06 Jan 2013 09:00:00 GMT-0500")); // XXX PST vs PDT?
var past = new Date(Date.parse("30 Nov 2012 09:00:00 GMT-0500"));
line = document.querySelector(".orange");
setTimelineChars(line, future);
function setCurrent() {
var current = new Date();
line = document.querySelector(".green");
@bwinton
bwinton / header.js
Created September 5, 2013 15:47
The best header (license and JSHint options) I know of for Mozilla Add-on SDK code.
/*! This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true,
strict:true, undef:true, unused:true, curly:true, browser:true, white:true,
moz:true, esnext:false, indent:2, maxerr:50, devel:true, node:true, boss:true,
globalstrict:true, nomen:false, newcap:false */
@bwinton
bwinton / keybase.md
Created March 27, 2014 19:45
Proof. So much proof.

Keybase proof

I hereby claim:

  • I am bwinton on github.
  • I am bwinton (https://keybase.io/bwinton) on keybase.
  • I have a public key whose fingerprint is 3106 808C EBA3 0AA9 7B28 B60D C464 8048 6BF9 4B63

To claim this, I am signing this object:

@bwinton
bwinton / LICENSE
Last active August 22, 2016 14:58 — forked from kennelliott/.DS_Store
regular-polygons-with-brushing
Mozilla Public License, version 2.0
1. Definitions
1.1. "Contributor"
means each individual or legal entity that creates, contributes to the
creation of, or owns Covered Software.
1.2. "Contributor Version"
@bwinton
bwinton / _.md
Created June 23, 2014 19:42
Heatmap-WIP1
@bwinton
bwinton / README.md
Last active August 22, 2016 14:55 — forked from carsonfarmer/README.md
Text-Based Clock

Text-Based Clock

A simple text-based clock that can be used as a Mac OSX Dashboard Widget

How to make the widget

  1. Clone this gist or click "Download Gist" on the right and extract the archive
  2. Copy the folder and its contents to somewhere 'safe' (i.e., where you won't delete it)
  3. Double click index.html to open the webpage in Safari
  4. Click the 'File' menu, then click 'Open in Dashboard...'
  5. Your screen will dim, and you can select the area you want to display in the widget
@bwinton
bwinton / defs.svg
Last active August 29, 2015 14:06
Sample input.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bwinton
bwinton / Toolbar.svg
Last active August 29, 2015 14:06
Sample output.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.