killerirving's recent timeline updates
killerirving

killerirving

V2EX member #172324, joined on 2016-05-09 17:44:02 +08:00
2 G 89 S 16 B
Per killerirving's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
killerirving's recent replies
Nov 22, 2024
Replied to a topic by PanicByte 分享创造 ByePhotos - iOS 手机空间清理 App
@PanicByte 不能了,只能杀后台
Nov 22, 2024
Replied to a topic by PanicByte 分享创造 ByePhotos - iOS 手机空间清理 App
预览图片之后下滑关闭有几率卡住
Nov 4, 2024
Replied to a topic by yuankui 问与答 有没有这样一款产品?(地图相关)
google map 的 list 功能似乎可以满足
Oct 7, 2024
Replied to a topic by julyclyde Python functools.partial 和 partialmethod 的困惑
c.getMe.func()其实是个错误使用,func 是 partialmethod class 的成员变量,也就是 self.callAPI 这个参数
```
class partial:
"""New function with partial application of the given arguments
and keywords.
"""

__slots__ = "func", "args", "keywords", "__dict__", "__weakref__"

def __new__(cls, func, /, *args, **keywords):
if not callable(func):
raise TypeError("the first argument must be callable")

if hasattr(func, "func"):
args = func.args + args
keywords = {**func.keywords, **keywords}
func = func.func

self = super(partial, cls).__new__(cls)

self.func = func
self.args = args
self.keywords = keywords
return self
````
Oct 6, 2024
Replied to a topic by julyclyde Python functools.partial 和 partialmethod 的困惑
1. “是不是因为前者在 class 内,而后者在 method 内的,scope 不同的缘故” 是的
2. 这种情况应该使用 partial 。partialmethod 是声明为 class descriptor 使用的,被读取时会调用__get__();而在函数中直接调用的 method 是__call__(),partialmethod class 中并没有定义该方法所以会有 not callable 的报错
Dec 7, 2023
Replied to a topic by HugeNature Kubernetes 从外部 ssh 到 k8s 的 pod 里面
看看这个? 用 kubectl 插件实现了一个 ssh ProxyCommand 的功能
https://github.com/ciiiii/kube-ProxyCommand
```
Host develop-container
HostName develop-container
User root
Port 22
IdentityFile /path/to/private/key
ProxyCommand kube-proxyCommand --name=podName --namespace=podNamespace --port=%p
```
有点像 Pulumi ,楼主可以体验下
Clipboard
iTerm->Finder/Finder->iTerm
Dictionary
My Schedule
Window Management
[Clash Dashboard]( https://www.raycast.com/Go2SheeP/clash)
Caffeinate
Sep 8, 2022
Replied to a topic by AmericanExpress iPhone See ya, mini-size iPhone
哎,难受
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   877 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 22:03 · PVG 06:03 · LAX 15:03 · JFK 18:03
♥ Do have faith in what you're doing.