How to use:
./wordle.sh
Or try the unlimit mode:
import logging | |
from django.db import models, transaction | |
from django.db.models.signals import post_save | |
logger = logging.getLogger(__name__) | |
def on_save(obj: models.Model, callback): | |
""" | |
Attaches a one-off callback that's triggered after a Django model instance is |
from typing import Generic, TypeVar | |
import strawberry | |
ConnectionNode = TypeVar("ConnectionNode") | |
@strawberry.type | |
class Edge(Generic[ConnectionNode]): | |
node: ConnectionNode |
heroku create {app} --stack container | |
datasette package --tag registry.heroku.com/{app}/web | |
docker push registry.heroku.com/{app}/web | |
heroku container:release -a {app} web |
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
var timer=100;document.querySelectorAll("div > input[type='checkbox']:checked").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;}); |
""" "Writing SQL is just as fast as using an ORM" proof of concept | |
Below is a simple Python object model, where we represent a database that | |
stores the names of employees at a company, some of whom are "engineers", | |
and a list of the jobs they do and the programming languages they use. | |
We'd like to persist the state represented by this Python object model | |
in a relational database, using our Python objects as a start. Then we'd | |
like to write SQL queries for rows in this database, and we get back instances | |
of Python objects exactly as they were created. |
import sys | |
from django.conf import settings | |
settings.configure( | |
DEBUG=True, | |
SECRET_KEY='thisisthesecretkey', | |
ROOT_URLCONF=__name__, | |
MIDDLEWARE_CLASSES=( | |
'django.middleware.common.CommonMiddleware', | |
'django.middleware.csrf.CsrfViewMiddleware', | |
'django.middleware.clickjacking.XFrameOptionsMiddleware', |
React Fiber is an ongoing reimplementation of React's core algorithm. It is the culmination of over two years of research by the React team.