Skip to content

Instantly share code, notes, and snippets.

View gregglind's full-sized avatar

Gregg Lind gregglind

View GitHub Profile
@gregglind
gregglind / govletter.txt
Created April 4, 2012 18:56
Governance letter
tl;dr
CoC don't guarantee safety. They help people know commuity norms, indicate intent,
and suggest remedy for problems. Different actions are approriate for different spaces.
What is appropriate for Mozilla spaces is ulitimately up to the stewards of those spaces.
What they choose will probably alienate someone no matter what they choose, and is part of the
burden of stewardship.
@gregglind
gregglind / hg_setup_push_pull.sh
Created April 12, 2012 21:37
hg play with merges (push and pull)
TOP=$(pwd)
d1="$TOP"/hg1
d2="$TOP"/hg2
rm -rf hg1 hg2
mkdir hg1
echo "shared version" > hg1/f1.txt
echo "shared version" > hg1/f2.txt
cd hg1
hg init
@gregglind
gregglind / classic_fingers.R
Created April 16, 2012 20:52
Some Demonstrations of Classical Testing.
## some r code for showing of z scores
# made up data about finger counts
fingers <- rep(c(12,11,10,9,8,7,6,5,4,3,2,1,0),c(1,0,10000,9,2,0,0,2,1,0,0,0,1))
table(fingers)
stem(fingers)
summary(fingers)
mean(fingers)
var(fingers)
box(fingers)
@gregglind
gregglind / tp2_survey.md
Created April 22, 2012 23:59
Test Pilot 2 Survey
@gregglind
gregglind / notification.js
Created April 27, 2012 16:37
example notifcationbox addon
"use strict";
const observer = require("observer-service");
const tabs = require("tabs");
const widgets = require("widget");
const { WindowTracker, isBrowser } = require('api-utils/window-utils');
var widget = widgets.Widget({
id: "mozilla-link",
label: "Mozilla website",
@gregglind
gregglind / proposal.md
Created April 30, 2012 21:57
Visual Dictionary of Mozilla UI Proposal
@gregglind
gregglind / dictionary.md
Created April 30, 2012 21:57
Visual Dictionary of Mozilla UI
@gregglind
gregglind / starobserver.js
Created May 30, 2012 20:01
observer v. observer
var log = function(){
let A = Array.prototype.slice.call(arguments).join(" ");
dump(Date.now() +":" + A + "\n");
};
if (console !==undefined ) log = console.log;
var timers = require('timers');
var { Class } = require("api-utils/heritage");
var { Unknown } = require('api-utils/xpcom');
@gregglind
gregglind / preffer.gist.js
Created July 26, 2012 19:27
possible prefs setting from addon main
const myprefs = require("simple-prefs").prefs;
const prefs = require("simple-prefs");
const preferencesservice = require("preferences-service");
var main = function(options,callback) {
// debug mode
console.log(JSON.stringify(options.staticArgs));
setprefs(options.staticArgs.prefs);
};
"use strict";
var BaseClasses = require("study_base_classes.js");
const ORIGINAL_TEST_ID = 100;
const MY_TEST_ID = "desktop_heatmap_2012";
/* Explanation of the schema:
* Schema is highly generic so that it can handle everything from toolbar
* customizations to mouse events to menu selections.