Skip to content

Instantly share code, notes, and snippets.

View Abhishek8394's full-sized avatar
🌟

Abhishek Patel Abhishek8394

🌟
View GitHub Profile
@Abhishek8394
Abhishek8394 / json_flat.py
Created June 10, 2017 06:57
Convert arbitrarily deep json into series of json objects that are only one level deep.
from collections import deque
import json
import sys
import argparse
import os
DEBUG_ENABLED = False
# for common notation on representing indices of array
def createIndex(ind):
@Abhishek8394
Abhishek8394 / speechrecog.js
Created January 17, 2017 14:53
Basic Speech Recognition Firefox
/*
* This is a JavaScript Scratchpad.
*
* Enter some JavaScript, then Right Click or choose from the Execute Menu:
* 1. Run to evaluate the selected text (Ctrl+R),
* 2. Inspect to bring up an Object Inspector on the result (Ctrl+I), or,
* 3. Display to insert the result in a comment after the selection. (Ctrl+L)
*/
var SpeechRecognition = SpeechRecognition;// || webkitSpeechRecognition