Skip to content

Instantly share code, notes, and snippets.

View andyed's full-sized avatar

Andy Edmonds andyed

View GitHub Profile
@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 / 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
/*
@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
-- 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)
@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);