UPDATE
`table1` AS `dest`,
(
SELECT
*
FROM
`table2`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import ipaddress | |
import sys | |
def get_cidr_ip_info(ip_net): | |
try: | |
net = ipaddress.ip_network(ip_net, strict=False) | |
print('IP版本号 | %s ' % str(net.version)) | |
print('是否是私有地址 | %s ' % str(net.is_private)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
## Dependencies: | |
# | |
# pip install qiniu | |
# | |
## Tips for Deploy certs to Qiniu: | |
# | |
# export DOMAIN=lewangdev.com | |
# export QINIU_DOMAIN=images.${DOMAIN},staticfiles.${DOMAIN} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patch: | |
# 菜单 | |
menu: | |
page_size: 8 # 候选词个数 | |
# alternative_select_labels: [ ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩ ] # 修改候选项标签 | |
# alternative_select_keys: ASDFGHJKL # 如编码字符占用数字键,则需另设选字键 | |
# ascii_mode、inline、no_inline、vim_mode 等等设定,可参考 /Library/Input Methods/Squirrel.app/Contents/SharedSupport/squirrel.yaml | |
# 中西文切换 | |
# | |
# 【good_old_caps_lock】 CapsLock 切换到大写或切换中英。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// node_modules/reflare/dist/src/database/workers-kv.js | |
var WorkersKV = class { | |
namespace; | |
constructor(namespace) { | |
this.namespace = namespace; | |
} | |
get = async (key) => { | |
const value = await this.namespace.get(key, { | |
type: "json", | |
cacheTtl: 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def joystickLoop(eventFile): | |
FORMAT = 'llHHI' | |
EVENT_SIZE = struct.calcsize(FORMAT) | |
with open(eventFile, 'rb') as infile: | |
while True: | |
event = infile.read(EVENT_SIZE) | |
_, _, t, c, v = struct.unpack(FORMAT, event) | |
print(t, c, v) | |
if t == 3 and v == 4294967295: | |
if c == 17: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
00:00:04,880 --> 00:00:11,880 | |
在这个视频中,我们将学习如何通过将多个提示链接在一起将复杂任务分解为一系列简单子任务。 | |
In this video, we'll learn how to split complex tasks into a series of simple sub-tasks by chaining multiple prompts together. | |
2 | |
00:00:12,340 --> 00:00:13,540 | |
你可能会问, | |
You might be wondering, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
00:00:00,000 --> 00:00:09,400 | |
想象一下,你可以上传一个大的PDF文档,使用人工智能分析出你需要的所有见解。 | |
Imagine you can upload a large PDF document and use AI to analyze all the insights you need for you. | |
2 | |
00:00:09,740 --> 00:00:10,560 | |
听起来不错吧? | |
That sounds good? |