国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
""" | |
This pure-python ChaCha20 implementation reaches 32MiB/sec on my machine (M1 Pro) | |
otoh, cryptography.io's impl reaches about 1700MiB/s. Way faster, of course, but only about 50x faster. | |
This is code is a proof-of-concept and should not be used in a security context. | |
""" | |
CONST_MAGIC = b"expand 32-byte k" | |
CONST_WORDS = [int.from_bytes(CONST_MAGIC[i:i+4], "little") for i in range(0, 16, 4)] |
class E(BaseException): | |
def __new__(cls, *args, **kwargs): | |
return cls | |
def a(): yield | |
a().throw(E) |
jooq.fetchOne("select * from film limit 1"); | |
// type safety for fields | |
jooq.fetchOne("select * from film limit 1").get(FILM.TITLE); | |
jooq.fetchOne("select title || ' ' || description from film limit 1").get(0, String.class); | |
// parameters | |
jooq | |
.fetchOne("select title || ' ' || description from film where title like ? limit 1", "DINOSAUR%") | |
.get(0, String.class); |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
import os | |
import socket | |
import struct | |
# These constants map to constants in the Linux kernel. This is a crappy | |
# way to get at them, but it'll do for now. | |
RTMGRP_LINK = 1 | |
NLMSG_NOOP = 1 | |
NLMSG_ERROR = 2 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |