This file contains 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 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 | |
}; |
This file contains 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 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 |
This file contains 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 assertTrue(expression){ | |
if(true != expression){ | |
throw("Not true"); | |
} | |
} | |
function assertFalse(expression){ | |
if(false != expression){ | |
throw("Not false"); | |
} |
This file contains 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
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', ' '))) |
This file contains 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
//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 = { |
This file contains 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
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 \ |
I hereby claim:
- I am hlecuanda on github.
- I am hlecuanda (https://keybase.io/hlecuanda) on keybase.
- I have a public key whose fingerprint is B67A 1066 07FB F278 7A74 1F18 8666 B944 3E6B 25DF
To claim this, I am signing this object: