Skip to content

Instantly share code, notes, and snippets.

View juliahw's full-sized avatar
🐦

Julia Wang juliahw

🐦
View GitHub Profile
// original from: http://mashe.hawksey.info/2014/07/google-sheets-as-a-database-insert-with-apps-script-using-postget-methods-with-ajax-example/
// original gist: https://gist.github.com/willpatera/ee41ae374d3c9839c2d6
function doGet(e){
return handleResponse(e);
}
// Enter sheet name where data is to be written below
var SHEET_NAME = "current";
@juliahw
juliahw / levenshtein.js
Last active November 8, 2015 04:04
Code for a Levenshtein trie, condensed into one file.
class TrieNode {
// Constructs an empty trie node.
constructor() {
// The word completed by this node.
this.word = null;
// A child consists of a letter key and TrieNode value.
this.children = {};
}