By Ryan Aunur Rassyid
Simply create RESTful API with Google Script and store it to Google SpreadSheet like a Pro.
function prepare(isAdmin) { | |
if (isAdmin) { | |
// เฉพาะ Admin | |
} else { | |
// ทำอีกแบบหนึ่ง | |
} | |
} | |
function process(isAdmin) { | |
if (isAdmin) { |
## Generate a key | |
# openssl rand -base64 741 > mongodb-keyfile | |
## Create k8s secrets | |
# kubectl create secret generic mongo-key --from-file=mongodb-keyfile | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: mongo | |
labels: |
<?php | |
/** | |
* Scan the api path, recursively including all PHP files | |
* | |
* @param string $dir | |
* @param int $depth (optional) | |
*/ | |
protected function _require_all($dir, $depth=0) { | |
if ($depth > $this->max_scan_depth) { |
// 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'; |