reporter
source /path/to/reporter [all | aliases | bindings | completion | functions |
limits | options | variables | zstyles]
kch = CacheService.getDocumentCache(); // set up the cache service as a global object | |
function lp(num){ | |
return ("0000" + num).slice(-2) // elegant | |
Utilities.sleep(500); | |
} | |
/** | |
* A function to left pad an integert with 0 if less than two digits |
#!/usr/bin/env zsh | |
# _ _ | |
# (_)_ __ (_) ___ | |
# | \ \/ / | |/ _ \ | |
# | |> < _| | (_) | | |
# |_/_/\_(_)_|\___/ | |
# [email protected] 20190927 144132 -0700 PDT 1569620492 d(-_- )b... | |
# Zsh implementation of the ix.io pastebin client. Now does more shit | |
# than the bash version ftw! | |
# |
LD = gcc | |
SHELL = /bin/sh | |
mainx : Makefile | |
$(LD) -o mainx *.o | |
clean :: | |
-$(RM) mainx | |
Makefile : *.c | |
@sed -e '/^### Do Not edit this line$$/,$$d' Makefile \ |
//Excerpts from https://dmitripavlutin.com/6-ways-to-declare-javascript-functions/ | |
// also in https://jsbin.com/bozilam | |
//for reference | |
// Function Declaration ----------------------------------------------- | |
var count = function(array) { // Function expression | |
return array.length; | |
}; | |
var methods = { |
import string | |
import sys | |
import logging | |
import json | |
from flask import Flask | |
from flask import Response, request | |
logger = logging.getLogger(__name__) | |
logger.info("Stackdriver webhook-sample starting up on %s" % (string.replace(sys.version, '\n', ' '))) |
function assertTrue(expression){ | |
if(true != expression){ | |
throw("Not true"); | |
} | |
} | |
function assertFalse(expression){ | |
if(false != expression){ | |
throw("Not false"); | |
} |
#!/usr/bin/env python | |
# −*− coding: UTF−8 −*− | |
# Las dos lineas anteriores se aseguran #1 de localizar el | |
# interpretador para poder usar el script directamente | |
# y #2 de definir la codificacion de la fuente. Solo es | |
# buena educacion, =) | |
#import sys # con argparse y la linea shebang! (#!) ya no lo ocupas | |
import argparse # modulo utilisimo para lineas de comando | |
import RPi.GPIO as GPIO |
function runQuery(querySelector) { | |
// Replace this value with the project ID listed in the Google | |
// Cloud Platform project. | |
var projectId = 'your-project-id-not-project-name'; | |
if (querySelector){ // be creative, construct your own dynamic query with parameters. or something | |
var request = { | |
query: 'SELECT * FROM project.dataset.table', | |
useLegacySql: false // set to true to use strange sql from the past | |
}; |