A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$
if your browser aliases it:
~ 108 byte version
from __future__ import unicode_literals | |
from django.db import models | |
from django.db.models.fields.related_descriptors import ForwardManyToOneDescriptor # noqa | |
class RelationNotLoaded(Exception): | |
pass | |
import inspect | |
import sys | |
from datetime import datetime | |
from enum import EnumMeta | |
from typing import Any, Dict, List, Tuple, Union, _GenericAlias, get_type_hints | |
from pydantic import BaseModel | |
# Import your pydnatic models here | |
models = inspect.getmembers( |
import { useEffect, useState } from 'react'; | |
import * as Font from 'expo-font'; | |
import { SplashScreen } from 'expo'; | |
/** | |
* Load and use resources that need to be loaded async by Expo SDK | |
*/ | |
const useExpoResources = () => { | |
const [isLoading, setIsLoading] = useState(true); |
require('isomorphic-fetch'); | |
async function go(params) { | |
const variables = { | |
params: { | |
bqf: { callsite: 'COMMERCE_MKTPLACE_WWW', query: 'iphone' }, | |
browse_request_params: { | |
// burlington | |
filter_location_id: '108043585884666', | |
// hamilton |
How should we decide what actually to work on in order to more effectively achieve our goals? Assess the activities' leverage:
Leverage = (Impact Produce) / (Time Invested)
Another way of thinking about leverage is the commonly-mentioned Pare- to principle, or 80–20 rule—the notion that for many activities, 80% of the im- pact comes from 20% of the work.
check minidns | |
check checktls.com | |
-- | |
## | |
random | |
ssh [email protected] -p 2022 "tee -a /etc/dropbear/authorized_keys|tee -a ~/.ssh/authorized_keys" < ~/.ssh/id_rsa.pub | |
mount -t cifs -o vers=1.0,uid=1000,iocharset=utf8,sec=ntlm,credentials=/tmp/.cred //192.168.123.45/home /tmp/wintmp #synology SMB1 | |
mount -t cifs -o vers=3.0,uid=1000,iocharset=utf8,sec=ntlmv2,credentials=/tmp/.cred //192.168.123.45/home /tmp/winshare#synology SMB3 | |
git add -A ;git commit -m "$(date -u +%Y-%m-%d-%H.%M)"" $COMMITCOMMENT" ;git push |
Configuring your Django project to use Celery http://celeryq.org/docs/django-celery/getting-started/first-steps-with-django.html
Run the worker server in the foreground, so we can see what’s going on without consulting the logfile:
$ python manage.py celeryd -l info
/* Useful celery config. | |
app = Celery('tasks', | |
broker='redis://localhost:6379', | |
backend='redis://localhost:6379') | |
app.conf.update( | |
CELERY_TASK_RESULT_EXPIRES=3600, | |
CELERY_QUEUES=( | |
Queue('default', routing_key='tasks.#'), |