- GraphQL nexus-prisma plugin: https://nexus.js.org/docs/database-access-with-prisma
- PhotonJS GraphQL subscriptions example: https://github.com/prisma/photonjs/tree/master/examples/typescript/graphql-subscriptions
- Prisma 2 repository: https://github.com/prisma/prisma2
- Prisma GraphQL-Yoga library: https://github.com/prisma/graphql-yoga
- Online docs for 5e rules, based on the SRD 5.1 (System Reference Document) made available under OGL 1.0a (Open Gaming License)
- https://open5e.com/combat/attacking.html
- Was inspecting a REST API reference, and found that all requests are POST requests.
- Reason given was that POST requests are more secure than GET requests, presumably because you don't send data in the URL query
- But...insufficient reason?
- API key is sent in header.
- Otherwise no difference in the interface; comes down to how the REST API server resolves the request.
- POST requests are usually used to create resources.
- https://restfulapi.net/idempotent-rest-apis/
- Each POST request creates a new resource on the server, and is therefore not expected to be idempotent
- So having all REST endpoints as POST endpoints is weird because
Notes in an attempt to document a C library.
You can write C pointers in the following ways:
someType* somePtr;
Command | Description |
---|---|
gcloud auth login |
log into google cloud console with credentials |
gcloud config set project <PROJECT_ID> |
set project ID (local gcloud starts without a set active project) |
gcloud beta interactive |
enters a very very awesome "interactive" mode with autocomplete and command preview. |
gcloud config set compute/zone asia-southeast1-a |
sets compute zone to given zone id. |
Notes for https://www.kaggle.com/learn/intro-to-machine-learning
misc notes:
- the melbourne dataset
made available for download with the kernel seems to be corrupted (451KB instead of 1.99MB;
can't call
read_csv
and opening it in any text editor just shows gibberish) - the melb dataset is a snapshot, which means you can get to the original dataset by Tony Pino.
Notes while going throught: https://svelte.dev/tutorial/
Personal thoughts:
- pretty quick to get through
- excited that it's a compiled language
- types? compatible with typescript, since you also need to invoke it like the
ts
compiler?
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 sh | |
# This script: | |
# 1. Creates a new directory to store the reports we're going to generate. | |
# 2. Generate a lighthouse report for desktop emulation. | |
# 3. Generate a lighthouse report for mobile emulation, with basic 3G throttling settings taken from here: https://github.com/GoogleChrome/lighthouse/commit/a9b02a948b579be1a0667b69627f6d1f831d30ca | |
run() { | |
NOW=$(date +%Y-%m-%dT%H%M%S%z) | |
OUTPUT_FORMAT="html" |