Skip to content

Instantly share code, notes, and snippets.

View biancadanforth's full-sized avatar

Bianca Danforth biancadanforth

View GitHub Profile
@biancadanforth
biancadanforth / test_local_storage_live_reload.shell
Created May 8, 2019 21:48
Bug_1542035_xpcshell_task_test_local_storage_live_reload_failing
bdanforth ~/src/mozilla-unified $ ./mach test devtools/server/tests/unit/test_extension_storage_actor.js
0:01.27 INFO Found node at /Users/bdanforth/.mozbuild/node/bin/node
0:01.27 INFO Found moz-http2 at /Users/bdanforth/src/mozilla-unified/testing/xpcshell/moz-http2/moz-http2.js
0:01.39 INFO Running tests sequentially.
0:01.39 SUITE_START: xpcshell - running 1 tests
0:01.41 INFO profile dir is /var/folders/r4/54vpbnzx4_l3jk8cmjgs5v040000gn/T/firefox/xpcshellprofile
0:01.42 TEST_START: devtools/server/tests/unit/test_extension_storage_actor.js
0:01.42 INFO devtools/server/tests/unit/test_extension_storage_actor.js | full command: ['/Users/bdanforth/src/mozilla-unified/objdir-frontend-debug-artifact/dist/Nightly.app/Contents/MacOS/xpcshell', '-g', '/Users/bdanforth/src/mozilla-unified/objdir-frontend-debug-artifact/dist/Nightly.app/Contents/Resources', '-a', '/Users/bdanforth/src/mozilla-unified/objdir-frontend-debug-artifact/dist/Nightly.app/Contents/Resources/browser', '-r', '/Users/bdanforth/src/moz
@biancadanforth
biancadanforth / 1Algorithms_Coursera_Part_IV_Programming_Assignment_4.js
Last active May 1, 2019 17:53
Stanford Algorithms Coursera Part 4 Programming Assignment 4
We couldn’t find that file to show.
@biancadanforth
biancadanforth / Graph.js
Last active April 20, 2019 20:57
Algorithms_Coursera_Part IV_Programming_Assignment_3.js
/* eslint-disable arrow-body-style, object-property-newline, no-undef */
class Graph {
/*
* Construct a graph
*
* @param {Map} nodeVsLocation - node => {x: number, y: number}
*/
constructor(nodeVsLocation) {
this.nodeVsLocation = nodeVsLocation;
@biancadanforth
biancadanforth / Algorithms_Coursera_Part IV_Programming_Assignment_2.js
Last active April 14, 2019 23:55
Algorithms_Coursera_Part IV_Programming_Assignment_2.js
/* eslint-env node */
/**
* -------------------------- Part 1 -----------------------------
*/
/**
* In this assignment you will implement one or more algorithms for the traveling
* salesman problem, such as the dynamic programming algorithm covered in the
* video lectures. Here is a data file describing a TSP instance.
@biancadanforth
biancadanforth / Algorithms_Coursera_Part IV_Programming_Assignment_1.js
Last active May 4, 2019 20:00
Algorithms_Coursera_Part IV_Programming_Assignment_1
/* eslint-env node */
/**
* -------------------------- Part 1 -----------------------------
*/
/**
* In this assignment you will implement one or more algorithms for the all-pairs
* shortest-path problem. Here are data files describing three graphs:
*
@biancadanforth
biancadanforth / knapsack1.txt
Last active March 26, 2019 19:15
Algorithms_Coursera_Part_III_Programming_Assignment_4
10000 100
16808 250
50074 659
8931 273
27545 879
77924 710
64441 166
84493 43
7988 504
82328 730
@biancadanforth
biancadanforth / Algorithms_Coursera_Part_III_Programming_Assignment_3_Part_3.js
Last active March 16, 2019 21:06
Algorithms_Coursera_Part_III_Programming_Assignment_3_Parts_1_and_2.js
/* eslint-env node */
/**
* -------------------------- Part 3 -----------------------------
*/
/**
* In this programming problem you'll code up the dynamic programming
* algorithm for computing a maximum-weight independent set of a path graph.
*
@biancadanforth
biancadanforth / Algorithms Coursera Part III Programming Assignment 2 Part 1.js
Last active March 18, 2019 17:32
Algorithms Coursera Part III Programming Assignment 2.js
/* eslint-env node */
/* eslint-disable object-property-newline */
/**
* -------------------------- Part 1 -----------------------------
*/
/**
* In this programming problem and the next you'll code up the clustering
* algorithm from lecture for computing a max-spacing k-clustering.
diff --git a/devtools/client/locales/en-US/storage.properties b/devtools/client/locales/en-US/storage.properties
--- a/devtools/client/locales/en-US/storage.properties
+++ b/devtools/client/locales/en-US/storage.properties
@@ -31,6 +31,9 @@ tree.labels.localStorage=Local Storage
tree.labels.sessionStorage=Session Storage
tree.labels.indexedDB=Indexed DB
tree.labels.Cache=Cache Storage
+# TODO: Figure out how to structure tree for the 3 different types of extension
+# storage (browser.storage.local, .managed, .sync).
+tree.labels.extensionStorage=Extension Storage
@biancadanforth
biancadanforth / Algorithms Coursera Part III Programming Assignment 1 Part 1 and 2.js
Last active March 3, 2019 00:14
Algorithms Coursera Part III Programming Assignment 1.js
/* eslint-env node */
/**
* -------------------------- Part 1 -----------------------------
*/
/**
* In this programming problem and the next you'll code up the greedy algorithms
* from lecture for minimizing the weighted sum of completion times.
*