Skip to content

Instantly share code, notes, and snippets.

View andyed's full-sized avatar

Andy Edmonds andyed

View GitHub Profile
@andyed
andyed / TestPilot Tabs Study 1
Created November 20, 2010 19:58
code for processing & working with testpilot tab dataset 1
CREATE TABLE vanilla30
(user int, event_code int, tab_position int, tab_window int, ui_method int, tab_site_hash int, num_tabs int, timestamp bigint)
LOAD DATA LOCAL INFILE '~/vanilla_firefox_users_30_percent.csv'
INTO TABLE vanilla30
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
(user, event_code, tab_position, tab_window, ui_method, tab_site_hash, num_tabs, timestamp);
-- data from https://testpilot.mozillalabs.com/testcases/tab-switch-study
CREATE TABLE tabopenclose (rowid MEDIUMINT NOT NULL AUTO_INCREMENT,user int, event_code varchar(20), id int, position int, window int, tab_site_hash int, srp int, tabs int, timestamp bigint, os varchar(128), ffversion varchar(20), PRIMARY KEY (rowid))
LOAD DATA LOCAL INFILE '~/tab_2000_users.csv'
INTO TABLE tabopenclose
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
(user, event_code, id, position, window, tab_site_hash, srp, tabs, timestamp, os, ffversion)
/*
@author: Andy Edmonds
@url: http://www.uxagile.com
@update: http://uxagile.com/kiosk-tab-rotator-jetpack-for-firefox/
@title: Jetpack Kiosk Tab Rotator
@description: For you information radiator screens
@license: MPL
*/
// TODO
@andyed
andyed / Bing Site Search Jetpack
Created December 7, 2009 05:19
Jetpack for Site Search of Current Tab
/*
@author: Andy Edmonds
@url: http://www.twitter.com/andyed
@email:andyed@gmail.com
@title: Bing Site Searcher
@andyed
andyed / VersionOne Ubiquity Commands for v0.5
Created August 19, 2009 19:09
VersionOne Ubiquity Commands for v0.5
var v1 = {
"path" : Application.prefs.getValue("extensions.ubiquity.v1instance",""),
"debugMode" : true,
"commandVersion": "0.3.3"
}
const V1MAXRESULTS = 20;
const V1NOPATH = 'Please run v1setinstance to set the path to your server.<br/><em>v1setinstance http://localhost/versionone/</em>';
const V1BRANDBAR = '<center><img src="http://udpates.versionone.com/ubiquity/images/versionone_logo_onblack_30.gif"/></center><br/>';
const V1BSDSTYLELICENSE = 'Copyright (c) 2008, VersionOne, Inc. All rights reserved.'+
@andyed
andyed / TabRotaterJetPack.js
Created August 18, 2009 15:33
Kiosk TabRotater JetPack
/*
@author: Andy Edmonds
@url: http://www.uxagile.com
@update: http://uxagile.com/kiosk-tab-rotator-jetpack-for-firefox/
@title: Jetpack Kiosk Tab Rotator
@description: For you information radiator screens
@license: MPL
*/
// TODO
@andyed
andyed / Ubiquity 0.5 Places Command.js
Created July 11, 2009 01:52
Places for Ubiquity next-gen beta, using semantic roles
//Derived from http://people.mozilla.org/~dietrich/ubiquity.js
var sources = ["history", "bookmarks", "starred", "tagged", "session"];
var sorts = ["revisit", "rediscover", "top", "rare", "new", "old"]
var noun_type_places_datasource = new CmdUtils.NounType("datasource", sources);
var noun_type_places_sorts = new CmdUtils.NounType(" sort attribute", sorts);
var debugMode = false;
@andyed
andyed / SEOPositionPlus.js
Created July 1, 2009 02:10
Google Analytics mod to extract SERP position
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
@andyed
andyed / pdxmoz
Created June 11, 2009 02:59
Firefox SessionStore.js -> Tab URL List w/ Favicons
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
// ==UserScript==
// @name Lizard Feeder: Focus/Context + Word Cloud
// @namespace feeds.mozilla.com
// @include http://feeds.mozilla.com/
// ==/UserScript==
/*
* Multi-column (just add float left, line 29)
* unsuccesful port to DOM mutation
* Version 0.0.4 Feb 20, 2009