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
| $ GOMAXPROCS=1 go run test.go | |
| 400: 200.371937ms (1285) | |
| 400: 200.557002ms (1998) | |
| 400: 201.016092ms (1993) | |
| 400: 201.548925ms (1993) | |
| 800: 201.371267ms (2340) | |
| 800: 201.489716ms (3996) | |
| 800: 205.647786ms (3998) | |
| 800: 212.762004ms (3459) | |
| 832: 223.881178ms (4000) |
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 Cocoa | |
| import Foundation | |
| // Move around and click automatically at random places in macos, kinda human like in a cheap way. | |
| // Moves the mouse pointer to `moves` random locations on the screen and runs the `action` function at | |
| // each point with the point as argument. | |
| func mouseMoveWithAction(moves: Int, action: (CGPoint) -> Void = defaultAction) { | |
| let screenSize = NSScreen.main?.visibleFrame.size |
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
| { | |
| "title": "Shift+Enter newline on Messages", | |
| "rules": [ | |
| { | |
| "description":"Change Shift+Enter to Ctrl+Enter in Messages", | |
| "manipulators":[ | |
| { | |
| "type":"basic", | |
| "from":{ | |
| "key_code": "return_or_enter", |