Source : Learn to combine RxJs sequences with super intuitive interactive diagrams
import Cocoa | |
class WindowController: NSWindowController { | |
} | |
class AppDelegate: NSObject { | |
var mainWindow: NSWindow? | |
var mainController: NSWindowController? | |
} |
/* | |
MIT license | |
what: | |
selected frames svg smil path data generator by Def ([email protected]) | |
why: | |
[Flash2Svg](https://github.com/TomByrne/Flash2Svg) and [SnapSVG-Animator](http://cjgammon.github.io/SnapSVG-Animator/) are awesome. | |
but both of them generate shape tween svg code in frame by frame way. | |
this script generate svg path code in the keyframe way flash used. |
function MenuItem(title, action, target) { | |
if (!title && !action && !target) return $.NSMenuItem.separatorItem | |
let i = $.NSMenuItem.alloc.init | |
i.title = title | |
i.action = action | |
i.target = target | |
return i | |
} | |
function StatusItem() { |
inspired by a friend’s fledgling language design and motivated by the JeanHeyd Meneide RustConf Fiasco™ and improving the story for compile-time introspection, i decided i needed a place to spew the last year’s musings on variadic generics in Rust in one mighty, less-than-understandable catharsis.
i think somewhere in here is a considered and reasonable design, so that’s neat!
perhaps i’ll make this an RFC one day. probably not. you have my express permission to do that yourself.
this nugget of language jargon encapsulates the idea that we might want to bind to an arbitrarily large list of generic parameters, all at once. there are many reasons to want to do this:
- we might want to implement a trait for all tuples, where each element of the tuple implements the same trait. [
bevy_ecs
'sBundle
trait](https://github.com/bevyengine/bevy/blob/87f7d013c0d4f45a93a4c29e5d48237f4b512ca2/crates/bevy_ecs/src/bundle.
Relax, I only have one Sunday to work on idea, literally my weekend project. So I tried Deepseek to see if it can help. Surprisingly, it works and it saves me another weekend...
Just chat.deepseek.com (cost = free) with prompts adapted from this gist.