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
var KEY_COLUMN = 0; | |
var VALUE_COLUMN = 1; | |
var DIALOG_TITLE = 'Exported JSON'; | |
var MENU_TITLE = "Export JSON"; | |
var MENU_ENTRY_ITEM_TITLE = "Export Key Values as JSON"; | |
// Invoked when Script is initialized | |
// We should inflate menu items in the menu bar now | |
function onOpen() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); |
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
var KEY_COLUMN = 0; | |
var VALUE_COLUMN = 5; | |
var DIALOG_TITLE = 'Exported JSON'; | |
var MENU_TITLE = "Export JSON"; | |
var MENU_ENTRY_ITEM_TITLE = "Export Key Values as JSON"; | |
// Invoked when Script is invoked | |
function onOpen() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var menuEntries = [ |
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
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
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
#!/usr/bin/env python | |
from pyadb import ADB | |
adbInstance = ADB() | |
adbInstance.set_adb_path('/Users/yourUserName/Library/Android/sdk/platform-tools/adb') | |
print "[+] Verifying ADB path..." | |
if adbInstance.check_path() is False: | |
print "ERROR" | |
exit(-2) |