Advent of Code 2022, small programming puzzles for a variety of skill sets that can be solved in any programming language. #coding @thedevs https://thedevs.link/HxnXh2
Hashtags
前段时间一直被MajdataPlay的外键输入问题困扰:有玩家反映majplay会无征兆地出现拖判和吃音,但是内屏一切正常 因为我是第一次接触游戏开发,IO这方面也完全没经验 一开始我和bb本怀疑是线程调度的问题,即:IO线程时间片被其他线程挤占了,导致IO线程无法及时处理HID设备回报。为了验证这个猜想,我们尝试提高了IO线程的优先级,照旧 接下来我怀疑是我那套框架有问题:majplay是根据上一帧与这一帧的按键状态判断按键是不是"click"。为此我重写了这部分的实现,改进了IO线程与主线程之间的交互,问题照旧....... 到这里我已经怀疑这不是majplay的锅:IO线程没有任何异常,IO线程与主线程的交互没有问题,Note判定逻辑也没有问题,那就是设备确实没有回报给majplay或者设备发过来的回报中按键确实没有按下,但是大佬说hdd没有这种问题.....(人已经快崩溃了,这完全看不透也摸不着,因为我用单片机模拟玩家打高速纵连是完全没有问题的,我在家里用手台测试也没有问题) 到最后,bb本灵光一闪,说有没有可能是led刷新率过高,把按键控制板干爆炸了?我们让大佬把led刷新间隔从16ms改成100ms,吃音问题瞬间没有了,无语了 。。。。。。。。。。。。。。。。。。。。 adx是一个控制板同时管理按键和led,为什么我没有遇到吃音问题呢,因为我的手台不是adx的... #dev
Hashtags
搜索 #coding
Advent of Code 2022, small programming puzzles for a variety of skill sets that can be solved in any programming language. #coding @thedevs https://thedevs.link/HxnXh2
Hashtags
Goodbye, clean code. #coding @thedevs https://kutt.it/e8ePSG
Hashtags
Name It, and they will come. #coding @thedevs https://kutt.it/emm4ZE
Hashtags
@Isaiahsystem · Post #1408 · 2026/01/17 18:02
Claude Code/ Codex/ Antigravity 终极启动器 (iTerm2 版) 丝如滑。最近优化了 Keyboard Maestro 快速在 iTerm 中启动 Claude Code/ Codex 宏动作。(已放评论) 结合我的快捷键启动建议,双击 Command 键读取选中的文件或文件夹,通过 iTerm2 在 Claude Code 中打开该目录位置,如果没有选中内容则跳转到预设目录。这里好用的是如果识别到 iTerm2 窗口已经打开,则开启新的 Tab 窗口分栏进入 Claude Code 打开,默认 Cmd+T 直接打开默认窗口;Codex 双击 Option 键同理。 还有个双击 Ctrl 可以 Antigravity 中同样快捷获取路径打开 iTerm Claude Code cd 到对应目录。如果 Antigravity 未打开,双击 Ctrl 则先打开该该窗口。 相关链接: 1 Claude Code 终极启动器 2 目前我的顶级生产力启动器 3 iTerm2 #coding
Hashtags
@amneumarkt · Post #472 · 2023/04/28 06:26
#coding I had some discussions with serval people about writing good code during machine learning experimentation. Whenever it comes to the part of writing formal code, opinions diverge. So, should we write good code that is easy to read with typing and tests, even in experiments? The spirit of experimentation is fast and reliable. So naturally, the question comes down to what kind of coding style allows us to develop and run experiments, fast. My experience with running experiments is that we will never run the code just once. Instead, we always come back to it and run it with different configurations or parameters. In this circumstance, how good shall my code be? For typing and tests, I type most of my args but only write tests needed to develop and debug a function or class. - Typing is important because people spend time figuring out what to put in there as an argument for a function. With typing, it is much faster. - Here is an example for tests: If I need to know the shape of the tensor deep in a method of a class, I would spend some seconds writing a simple test that allows me to put breakpoints in the method to investigate inside. But, the above is a bit trivial. How about the design of the functions and classes? I suggest taking your time writing those that are repeated in every experiment. We will hit some ceiling in development speed real quick, if we always use the first and most naive design for these. In practice, I would say, design it twice and write it once. One such example is data preprocessing. When dealing with the same data and problems, data transformations are usually quite similar in each experiment but a bit different in details. Finding the patterns and writing some slightly generic functions would be helpful. There is always the risk of over-engineering. I prefer to improve things little by little. I might generalize a function a little bit in one experiment. And also, don't hesitate to throw away your code to rewrite. Rewriting will take little time, and it usually brings in improvements. That's my five cents on code quality for developing and running machine learning experiments.
Hashtags
@siubeng_store · Post #352 · 2023/01/27 14:53
#Coding 今天闲下来重构一下以前坏掉的 Bilibili 网页播放器增强插件,发现我在其他项目中通过 Vite 构建 userscript (如 Tampermonkey) 插件脚本的依赖项目引流到另一个项目:vite-plugin-monkey,试用了一下确实是更加好用,也提供了不同框架的脚手架,给零碎的小需求节省了不少时间(不要问我小需求为什么不直接写单文件 vanilla js 呢🤣)
Hashtags
@amneumarkt · Post #244 · 2021/07/13 10:41
#Coding I found a nice place to practice programming thinking. It is not as comprehensive as hackerrank/leetcode but these problems are quite fun. https://codingcompetitions.withgoogle.com/
Hashtags
@renenotes · Post #95 · 2022/05/28 11:32
你要学会把代码和你自己分离,不要成为代码的拥有者。你要优化代码,便于其他人找到方法来修复错误和添加功能,把代码的控制权分散。因为你需要解放自己,继续去做下一个项目,否则你将永远无法脱身。 -- 《我编程20年的指导原则》 #Coding
Hashtags
#coding
Hashtags
@arkibug · Post #520 · 2025/09/07 04:44
一些现取现用的 box shadow 样式 #coding#tool
静态博客两周年 & Hugo 装修小记之四 #blog#coding
给 Hugo 博客的代码区块更换主题 Hugo 默认的深色代码块跟我的浅色博客主题不太搭,于是研究了一下给 syntax highlighter 换主题。拒绝所有事情无脑上 dark mode 保护视力从我做起! 论我为了拖延刷题都能干出什么无聊事儿,本来前两天随手改一下的事儿,现在变出了一整篇博客,都快要丧失非建站非折腾博主的荣誉称号了…… #blog#coding