V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  asmoker  ›  全部回复第 12 页 / 共 12 页
回复总数  232
1 ... 3  4  5  6  7  8  9  10  11  12  
2020-07-17 11:15:07 +08:00
回复了 binggg 创建的主题 程序员 看看有没有获得 Github 「北极开源贡献者」 称号
喜加一,欢迎 follow 一波啊 https://github.com/asmoker
2020-07-09 13:38:52 +08:00
回复了 3country 创建的主题 程序员 这样的需求能实现吗?
MySQL 的话可以用 canal 试试 https://github.com/alibaba/canal
2020-04-21 20:22:58 +08:00
回复了 Geeker 创建的主题 分享发现 即将失明,还能继续做程序员吗
《如果你突然瞎了该怎么办》
https://www.douban.com/note/25410829/
2020-04-09 09:34:45 +08:00
回复了 understanded 创建的主题 奇思妙想 有一个阿里云服务器,做个什么好?
@Amazed 不容易被封 IP,速度也可以。如果中转到阿里云东京,那就更。。。可以看下 kcptun
@xiaowei007 是啊,但是不办就没办法正常生活。md,对领导负责必然会层层加码,保证自己的环节没问题,不管对你生活有多大影响。现在越来越抵触跟 zf 人员打交道了,太费劲~
运动式防疫~
有点权力就想行使一下,都想卡别人,今天上午刚办完二代出入证,需要出入证和身份证一起使用,第一代作废了...
2020-02-27 01:10:45 +08:00
回复了 badtypea 创建的主题 NGINX 求助!遇到了 vue 跟 nginx 奇葩问题,我人傻了
是不是需要加 tryfiles ?

加了一级目录,但是原项目静态资源路径应该还是根的,根据把静态资源再单独处理下。
2020-02-24 15:46:33 +08:00
回复了 5bb864e1fc775087 创建的主题 程序员 准备开发和钱有关的功能,还有哪些地方要注意
使用 BigDecimal,设置好 MathContext 和 RoundingMode。
@onevcat 哈哈 太皮了~
2020-02-03 10:41:08 +08:00
回复了 tenstone 创建的主题 程序员 有人用阿里云 OSS 的静态托管做博客吗?
需要域名备案,算了吧~
2019-07-02 19:19:52 +08:00
回复了 xuyl 创建的主题 Python 爬取某头条 h5 端接口, 无论如何都拿不到数据, 姿势不对?
难道是这样?两年前的方法了……

def _gen_req_params():
"""
生成请求头条 URL 必要的密钥参数
:return:
"""
# 响应结果
params = {
'as': '479BB4B7254C150',
'cp': '7E0AC8874BB0985'
}

# 当前时间戳
timestamp = int(math.floor(int(round(time.time() * 1000)) / 1000))
now = hex(timestamp)
now_str_number = now[2:len(now)].upper()
now_md5 = hashlib.md5(str(timestamp).encode()).hexdigest().upper()

# 计算 as 和 cp 参数
if len(now_str_number) == 8:
as_pre = ''
cp_pre = ''
first_five_char = now_md5[0:5]
last_five_char = now_md5[:-5]
for i in range(5):
as_pre += first_five_char[i] + now_str_number[i]
for j in range(5):
cp_pre += now_str_number[j + 3] + last_five_char[j]
as_result = "A1" + as_pre + now_str_number[-3:]
cp_result = now_str_number[0:3] + cp_pre + "E1"
params = {
'as': as_result,
'cp': cp_result
}
return params
1 ... 3  4  5  6  7  8  9  10  11  12  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   744 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 20:54 · PVG 04:54 · LAX 13:54 · JFK 16:54
Developed with CodeLauncher
♥ Do have faith in what you're doing.