- Open Android Studio
- Go to: Tools > Create Command-line Launcher
- Leave as default, Press OK
- Add the following lines to your
.gitconfig
| // 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'; |
| function pullJSON() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var sheets = ss.getSheets(); | |
| var sheet = ss.getActiveSheet(); | |
| var url="http://example.com/feeds?type=json"; // Paste your JSON URL here | |
| var response = UrlFetchApp.fetch(url); // get feed | |
| var dataAll = JSON.parse(response.getContentText()); // |
To run on ios:
xcode-select --installnpm run iosTo run on Android:
npm run android-emulator-createnpm run android| apply plugin: "com.android.application" | |
| import com.android.build.OutputFile | |
| /** | |
| * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets | |
| * and bundleReleaseJsAndAssets). | |
| * These basically call `react-native bundle` with the correct arguments during the Android build | |
| * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the | |
| * bundle directly from the development server. Below you can see all the possible configurations |
| // | |
| // AppDelegate.swift | |
| // pushtest | |
| // | |
| // Created by sawapi on 2014/06/08. | |
| // Copyright (c) 2014年 sawapi. All rights reserved. | |
| // | |
| // iOS8用 | |
| import UIKit |
| // 開啟Browser | |
| Intent intent = new Intent(Intent.ACTION_VIEW); | |
| intent.setData(Uri.parse("http://tw.yahoo.com")); | |
| startActivity(intent); | |
| // 開啟YoutubeApp | |
| // https://www.youtube.com/watch?v=2hhc6Zqn1GU | |
| Intent intent = new Intent(Intent.ACTION_VIEW); | |
| intent.setData(Uri.parse("vnd.youtube:" + DEF_VIDEO_ID)); | |
| startActivity(intent); |