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
| #import <Foundation/Foundation.h> | |
| #import <Cocoa/Cocoa.h> | |
| #import <unistd.h> | |
| BOOL copy_to_clipboard(NSString *path) | |
| { | |
| // http://stackoverflow.com/questions/2681630/how-to-read-png-image-to-nsimage | |
| NSImage * image; | |
| if([path isEqualToString:@"-"]) | |
| { | |
| // http://caiustheory.com/read-standard-input-using-objective-c |
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
| { | |
| "urls": [ | |
| { | |
| "url": "https://raw.githubusercontent.com/qist/tvbox/master/jsm.json" | |
| "name": "TV" | |
| }, | |
| { | |
| "url": "http://我不是.肥猫.love:63/接口禁止贩卖", | |
| "name": "🚀肥猫线路" | |
| }, |
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
| // check whether the object is the same reference | |
| // from https://stackoverflow.com/a/43963612/1166461 | |
| export const id = (() => { | |
| const useless = typeof (1 as any) | |
| let currentId = 0 | |
| const map = new WeakMap() | |
| type ResultType = number|bigint|string|boolean|undefined | |
| const objId = <T extends object>(obj: T): ResultType => { |
OlderNewer