Skip to content

Instantly share code, notes, and snippets.

@wolfordj
wolfordj / constants.js
Last active October 10, 2021 02:34
Lodging App V2
function define(name, value) {
Object.defineProperty(exports, name, {
value: value,
enumerable: true
});
}
define("LODGING", "Lodging");
define("GUEST", "Guest");
@wolfordj
wolfordj / config.json
Created October 7, 2018 00:45
Rest Lodgings
{
"GCLOUD_PROJECT": "[YOUR-PROJECT-ID]",
"DATA_BACKEND": "datastore"
}
explain SELECT *
FROM film
INNER JOIN film_actor ON film.film_id = film_actor.film_id
INNER JOIN actor ON actor.actor_id = film_actor.actor_id
WHERE film.release_year =2006;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE actor ALL PRIMARY NULL NULL NULL 200
1 SIMPLE film_actor ref PRIMARY,idx_fk_film_id PRIMARY 2 wolfordj-db.actor.actor_id 13 Using index
#!/opt/local/bin/python2.7
# To run this you may need to install requests. Do this by running
# sudo python -m pip install requests
import requests as r
import json as j
from time import sleep
url="https://banded-water-156623.appspot.com"