reporter
source /path/to/reporter [all | aliases | bindings | completion | functions |
limits | options | variables | zstyles]
function assertTrue(expression){ | |
if(true != expression){ | |
throw("Not true"); | |
} | |
} | |
function assertFalse(expression){ | |
if(false != expression){ | |
throw("Not false"); | |
} |
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', ' '))) |
//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 = { |
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 \ |
#!/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! | |
# |
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 |