SELECT
file.project,
COUNT(*) as total_downloads,
FROM
TABLE_DATE_RANGE(
[the-psf:pypi.downloads],
TIMESTAMP("20160114"),
This file contains hidden or 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
| 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 |
This file contains hidden or 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 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! | |
| # |
This file contains hidden or 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 \ |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |