The following guide will show you how to connect a local model served with MLX to OpenCode for local coding.
1. Install OpenCode
curl -fsSL https://opencode.ai/install | bash
| // Discord all events! | |
| // A quick and dirty fleshing out of the discord.js event listeners (not tested at all!) | |
| // listed here -> https://discord.js.org/#/docs/main/stable/class/Client | |
| // Learn from this, do not just copy it mofo! | |
| // | |
| // Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584 | |
| // Last Updated -> Halloween 2022 | |
| /* |
| #!/bin/bash | |
| # run this scripts with `bash emoji-info.sh` or `./emoji-info.sh` | |
| usage() { | |
| cat << EOF | |
| usage: $0 [options] <emoji> | |
| Options: | |
| -h Show this message | |
| -o Octal Escape Sequence |
| package net.kristopherjohnson.util; | |
| import java.text.DateFormat; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import java.util.Locale; | |
| import java.util.TimeZone; | |
| /** | |
| * Methods for dealing with timestamps |