This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A script to generate a Google BigQuery-complient JSON-schema from a JSON object. | |
Make sure the JSON object is complete before generating, null values will be skipped. | |
References: | |
https://cloud.google.com/bigquery/docs/data | |
https://cloud.google.com/bigquery/docs/personsDataSchema.json | |
https://gist.github.com/igrigorik/83334277835625916cd6 | |
... and a couple of visits to StackOverflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createToolBar(toolbarUrl, callback) { | |
var toolbar = $('<div>').attr("id", "oda-toolbar"); | |
$('body').prepend(toolbar); | |
var url = chrome.extension.getURL(toolbarUrl); | |
$('#oda-toolbar').load(url, function() { callback();}); | |
} | |
function setupSearchInput() { | |
$("input#odaSearch").keyup(function (e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System; | |
open System.IO; | |
open System.Reflection; | |
module EmbeddedResourceManager = | |
let assembly = Assembly.GetCallingAssembly() | |
let private GetCompleteResourceName ( resourceName: string) = | |
let matches = |