- ⌘ ← 0x02 0x70
- ⌘ → 0x02 0x6E
- ⌘ ⌥ ↑ 0x02 0x1B 0x5B 0x41
import "dotenv/config"; | |
import { read } from "read"; | |
import OpenAI from "openai"; | |
import { Command } from "@commander-js/extra-typings"; | |
const program = new Command() | |
.argument("<model-repo>") | |
.action(async (repo) => { | |
const baseURL = "https://glhf.chat/api/openai/v1"; | |
const apiKey = process.env.GLHF_API_KEY; |
> ruby ./pty-reopen.rb 20 | |
┌───────────────────┤ PTY SCREEN 55x20 ├───────────────────┐ | |
│ > echo 'echoed' │ | |
│ echoed │ | |
│ │ | |
│ let's run some shit in an inner pty and do some crazy f │ | |
│ ormatting. we will run: │ | |
│ > cat ./ruby-fd-debug.rb │ | |
│ running... │ |
> cat ./data/output/Young\ Vortex\ Dragon.json | |
{ | |
"name": "Young Vortex Dragon", | |
"cr": 10, | |
"xp": 9600, | |
"hp": 104, | |
"hd": 11, | |
"classes": [], | |
"race": "", |
type empty = undefined | null; | |
type Maybe<T> = T | empty; | |
type TrueCell<T> = (b: true) => T; | |
type FalseCell<T> = (b: false) => Maybe<TrueCell<T> | FalseCell<T>>; | |
type Cell<T> = TrueCell<T> | FalseCell<T>; | |
type Next<T> = Maybe<Cell<T>>; | |
type Iteration<T> = T | Next<T>; | |
/* | |
* Get the value of a Cell |
io_result.and_then(|result| { | |
// do something | |
}).ok(); |
Made by reissbaker, h4rry, clizzin, ssorallen, and spikebrehm.
!function($, App) { | |
var initialized = false; | |
var updateUI = function() { | |
var $pic, $picLI, index, $prevLI, $prevPic, | |
$picSeparator, $picContent, | |
$pics = $('.userpic img' + (!initialized ? '' : ':visible')), | |
SPACING = '3px'; | |
initialized = true; |
var selectKeys = function(hash, keys) { | |
var output, prop, index; | |
output = {}; | |
if(!keys) return {}; | |
if(keys instanceof Array) { | |
for(index = 0; index < keys.length; index++) { | |
output[keys[index]] = hash[keys[index]]; | |
} | |
return output; |