Skip to content

Instantly share code, notes, and snippets.

View ryan-willis's full-sized avatar
💻
probably writing code

Ryan Willis ryan-willis

💻
probably writing code
View GitHub Profile
@erikdubbelboer
erikdubbelboer / go.txt
Created October 11, 2019 09:31
libdill vs go concurrency
$ 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)
@vorce
vorce / jerry.swift
Last active May 11, 2025 06:07
Mouse move and click test thing for macos in swift
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
@ryan-willis
ryan-willis / messages_newline.json
Last active February 4, 2022 17:17
Shift+Enter newline on Messages (Karabiner Elements 12)
{
"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",