Skip to content

Instantly share code, notes, and snippets.

View upvalue's full-sized avatar
🐦‍⬛

Phil upvalue

🐦‍⬛
View GitHub Profile
@upvalue
upvalue / empty-gql.js
Created July 10, 2018 03:20
Empty gql tag to get VSCode IDE features without any library dependencies
const gql = (strings: ReadonlyArray<string>) => {
return strings.join('');
}
# https://news.ycombinator.com/item?id=18214677
# clone foo/bar => git clone https://github.com/foo/bar
function clone; git clone --recursive https://github.com/$argv; end
@upvalue
upvalue / routed_cloud_function.py
Created January 20, 2019 01:37
Routing for GCF.
# hack together router with werkzeug because google cloud functions does not
# support full flask apps
from werkzeug.routing import Map, Rule, NotFound
from werkzeug.exceptions import MethodNotAllowed, HTTPException
url_map = []
def route(path, methods=("GET",)):
def decorator(fn):
||news.ycombinator.com$document
@upvalue
upvalue / Lily58-practical-coding.kbd.json
Last active November 29, 2024 04:16 — forked from elfmimi/Lily58-Nicola.kbd.json
Lily58 practical coding
[
{
"name": "Lily58 practical coding"
},
[
{
"x": 3
},
"#\n\n\n\n\n\n3",
{