By Ryan Aunur Rassyid
Simply create RESTful API with Google Script and store it to Google SpreadSheet like a Pro.
| { | |
| "New York": [ | |
| "New York", | |
| "Buffalo", | |
| "Rochester", | |
| "Yonkers", | |
| "Syracuse", | |
| "Albany", | |
| "New Rochelle", | |
| "Mount Vernon", |
| import os.path | |
| import re | |
| ''' | |
| INSTRUCTIONS | |
| 1. Create a file with the following code | |
| 2. Put the file you want to convert into the same folder as it, and rename it to "py_file.py" | |
| 3. Add a "#F" comment to any lines in the code which have a function call that doesn't assign anything (so no =), | |
| as the program cannot handle these convincingly | |
| 4. Run the converter file |
| from __future__ import print_function | |
| import numpy as np | |
| import cv2 | |
| import time | |
| np.set_printoptions(formatter={'float': '{: 0.3f}'.format}) | |
| def triangulate_nviews(P, ip): | |
| """ |
See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
| //Setup: | |
| // Create a sheet with the first sheet called 'TrafficData'. Cell Values are: | |
| // A1: Repo Traffic Collector | |
| // A3: Organization B3: <org value> | |
| // A4: Repo B4: <repo name> | |
| // A7: Date, B7: Views, C7: Uniques, D7: Weeknumber | |
| //Tools -> Script Editor | |
| //Add this script, fill in your GitHub TOKEN (https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) | |
| //Run the onOpen script - you will be warned it is insecure, but accept anyway. This should add a menu item to your sheet | |
| //Use the Custom GitHub menu to run the getRepoTrafficStats function |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| [RequireComponent(typeof(Image))] | |
| [RequireComponent(typeof(AspectRatioFitter))] | |
| public class CameraImage : MonoBehaviour { | |
| private WebCamTexture cameraTexture; | |
| private Image image; | |
| private AspectRatioFitter fit; |
| # Delete all firestore composite indexes | |
| gcloud firestore indexes composite list --uri | xargs -I{} gcloud firestore indexes composite delete {} --quiet |
| # HOST="1.tcp.ngrok.io" PORT=12345 python server.py | |
| import os | |
| import socket | |
| from pyngrok import ngrok | |
| host = os.environ.get("HOST") | |
| port = int(os.environ.get("PORT")) |