This file contains hidden or 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 bash | |
| # This script uses a shallow-get technique to get a list of all top level keys | |
| # in a Firebase Realtime Database, then extract the tree under each key into a | |
| # separate JSON file, one per top level key. | |
| # | |
| # It’s great for making backups because you don’t end up with one ginormous | |
| # export file which is really hard to manage with other tools. | |
| # | |
| # It can also immediately give you a sense of where your space is going per key, |
This file contains hidden or 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
| //This is a google apps script project json. | |
| //The Import/Export API, that is on the Google Drive API, use this. | |
| //If u have existing project, u can do update, delete, add and rename project's code and file by changing this json structure. | |
| { | |
| //files property is Google Apps Script Project Files. | |
| //It has some hash objects. | |
| "files": [ | |
| //Hash object is Google Apps Script File. | |
| //It contain id, name, type, source. | |
This file contains hidden or 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 onOpen() { | |
| var menuEntries = [ {name: "Create Diary Doc from Sheet", functionName: "createDocFromSheet"}]; | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| ss.addMenu("Fitness Diaries", menuEntries); | |
| } | |
| function createDocFromSheet(){ | |
| var templateid = "1O4afl8SZmMxMFpAiN16VZIddJDaFdeRBbFyBtJvepwM"; // get template file id | |
| var FOLDER_NAME = "Fitness Diaries"; // folder name of where to put completed diaries | |
| // get the data from an individual user |
This file contains hidden or 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
| public class XOAuth { | |
| public static void main(String[] args) throws Exception { | |
| java.io.BufferedReader input = new java.io.BufferedReader( | |
| new java.io.InputStreamReader(System.in)); | |
| System.out.println("Enter an email:"); | |
| String email = input.readLine(); | |
| System.out.println("Enter a consumer key:"); | |
| String consumerKey = input.readLine(); | |
| System.out.println("Enter a consumer secret:"); |