mkdir osm
wget -O osm/planet.mbtiles https://hidrive.ionos.com/api/sharelink/download?id=SYEgScrRe
podman run -ti --rm -p 9000:9000 --name sms -v $(pwd)/osm/:/data/ registry.gitlab.com/markuman/sms:latest
firefox http://localhost:9000
Unsorted notes on Fulcro RAD.
Tony advises:
There are two primary ways to do this. If it is a true to one relationship, then you can simply make a resolver from person ID to address ID in pathom and then you can just include address things as columns. The other option, which works for any cardinality, is to use the report option
ro/column-EQLand write a join that pulls the information you want to format in the column, and then supply a column formatter to do the formatting of the nested data.
| import binascii | |
| import struct | |
| def pronto2lirc(pronto): | |
| codes = [long(binascii.hexlify(pronto[i:i+2]), 16) for i in range(0, len(pronto), 2)] | |
| if codes[0]: | |
| raise ValueError('Pronto code should start with 0000') | |
| if len(codes) != 4 + 2 * (codes[2] + codes[3]): | |
| raise ValueError('Number of pulse widths does not match the preamble') |
Consider this ClojureScript code:
(defn foo []
(let [location 12345] (prn js/location.hash)))
This won't work. js/ isn't a real namespace. This code will throw an exception at runtime.
The reason is that the code expands to this JS snippet:
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| creationTimestamp: null | |
| name: test | |
| spec: | |
| replicas: 1 | |
| template: | |
| metadata: | |
| creationTimestamp: null |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
| import contextlib | |
| import OpenSSL.crypto | |
| import os | |
| import requests | |
| import ssl | |
| import tempfile | |
| @contextlib.contextmanager | |
| def pfx_to_pem(pfx_path, pfx_password): | |
| ''' Decrypts the .pfx file to be used with requests. ''' |
| #!/bin/bash -x | |
| set -e | |
| # https://www.digitalocean.com/community/tutorials/how-to-use-floating-ips-on-digitalocean | |
| DESTINATION_IP=$1 | |
| shift || (echo "E: Destination IP is not provided. Aborting"; exit 1) | |
| ANCHOR_GW=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/anchor_ipv4/gateway) |