Skip to content

Instantly share code, notes, and snippets.

@chandsie
chandsie / search.js
Created January 3, 2013 05:17
YouTube Search Autocomplete Example
var suggestCallBack; // global var for autocomplete jsonp
$(document).ready(function () {
$("#search").autocomplete({
source: function(request, response) {
$.getJSON("http://suggestqueries.google.com/complete/search?callback=?",
{
"hl":"en", // Language
"ds":"yt", // Restrict lookup to youtube
"jsonp":"suggestCallBack", // jsonp callback function name
@chandsie
chandsie / keybase.md
Created September 23, 2014 23:48
Keybase Proof

Keybase proof

I hereby claim:

  • I am chandsie on github.
  • I am chandsie (https://keybase.io/chandsie) on keybase.
  • I have a public key whose fingerprint is FE5B 5E28 813A D72E 07FB AE41 5131 C648 70D5 1C4E

To claim this, I am signing this object:

@chandsie
chandsie / gist:b6c2f1cf322372b5fa91
Created January 27, 2015 13:29
ebooks.csv diff
1,64d0
<
< ------
< DE
< DE
< 1746
< OEUVRES
< OEUVRES
< A PARIS,
< LE MONDE
@chandsie
chandsie / ores_info.gs
Created July 12, 2019 05:39
Combining two GESI endpoints to get information on ores
function myFunction() {
var sheet = SpreadsheetApp.getActiveSheet();
var items = [];
// 25 == ores category
var catInfo = GESI.universe_categories_category(25, "en-us", false, "latest")[0];
JSON.parse(catInfo[1]).forEach(function(groupID) {
Logger.log(groupID);
var groupInfo = GESI.universe_groups_group(groupID, "en-us", false, "latest")[0];