Skip to content

Instantly share code, notes, and snippets.

View meowgorithm's full-sized avatar
💭
Gosh

Christian Rocha meowgorithm

💭
Gosh
View GitHub Profile
@meowgorithm
meowgorithm / configuration.nix
Last active January 20, 2023 18:28
Soft Serve on NixOS at DigitalOcean
{
pkgs,
modulesPath,
lib,
...
}: let
sshdPort = 8888;
softServePort = 22;
in {
imports =
@meowgorithm
meowgorithm / make-gif.sh
Created September 29, 2022 13:59
Small GIFs with ffmpeg and bash
#!/usr/bin/env bash
function makeGIF {
local input="$1"
local framerate="$2"
local width="$3"
local basename="$4"
local maxColors="$5"
# GIFs of 60fps videos have to be 50fps
@meowgorithm
meowgorithm / go.mod
Last active August 30, 2022 04:16
Viewport + Textarea Chat Layout
module example
go 1.19
require (
github.com/charmbracelet/bubbles v0.13.1-0.20220830040516-d44e242f37ed
github.com/charmbracelet/bubbletea v0.22.1
github.com/charmbracelet/lipgloss v0.5.0
)
@meowgorithm
meowgorithm / main.go
Created May 18, 2022 12:52
69 FPS in Bubble Tea
package main
import (
"fmt"
"time"
tea "github.com/charmbracelet/bubbletea"
)
type stepMsg time.Time
@meowgorithm
meowgorithm / go.mod
Last active April 25, 2021 22:30
Bubbles textinput.Model.CursorEnd() example
module example
go 1.16
require (
github.com/charmbracelet/bubbles v0.7.8
github.com/charmbracelet/bubbletea v0.13.2
)
package prompt
import (
"github.com/charmbracelet/bubbles/textinput"
tea "github.com/charmbracelet/bubbletea"
)
type State int
const (
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF3wBOQBEADj2wO2rzx7OmUnutkiKHL/zpkqywQBo5umRKqMjj/Hf6qQ6feL
SuUMtI4/OP1M3TTV/723O6zD+Lacnn3hz6V8Z7ePOKxpE1ohIDaFKZPhDtwOpJTa
wUYVaiI5sS0bsytZrpW6xlhHXaVuiq0J8B2mcPCaYKsUoZbFM6okQqDXAjsu2PaW
kN2RIahLFqARty+tx65pYPESIIM2g1Q9giU3CTVKPQ6wDqK2OmFhbRYR8me3m02p
cybEYbkew5V/AWuAQXJZ0xptuyLfHbQquJiIYKHoRtvoYQEqSEq+UtCXJR7fg76w
CfbjZO/iXf5hEzySldjphagXkwVLuz4fgvjEhaXwq8QueRJ8GRIYWWP0lxLjwU0l
JqzMaAhpjp3GFBSLR4/Cw/OtW8J/o2gaKYkPaf6MDiame6mG2IjBRfeo0nUMBr5e
SpVjWbS8qiG7fXoe7JABrCAW3sRtjyle9qsHvhxUGHYIApPfcTvCYYTlhz4E4PKr
$ node --version
v12.4.0
$ npm install
> tree-sitter@0.14.0 install /Users/christian/Code/elm-language-server/node_modules/tree-sitter
> prebuild-install || node-gyp rebuild
prebuild-install WARN install No prebuilt binaries found (target=12.4.0 runtime=node arch=x64 libc= platform=darwin)
CC(target) Release/obj.target/tree_sitter/vendor/tree-sitter/lib/src/lib.o
BEGIN;
CREATE TABLE todos (
id SERIAL,
name TEXT,
done BOOLEAN
);
CREATE TABLE people (
id SERIAL,
... .,,,,,,,.
$888888888888OOOO888888=
.D88OOOOOOOOOOOOOOOOOOOOOO888.
8888OOOOOOOOOOOOOZZZZOOOOOOOO88I
.D88OOOOOOOOOZZZZZZZZZZZZZZZOOOOO8D,
.D88OOOOOOOZZZZZZZZZZZZZZZZZZZZOOOO8D
.D888OOOOOOOOOZZZZZZZZZZZZZZZZZZOOOO888
8D888OOOOOOOOOOOOZZZZZZZZZZZZZZZZOOOO887
.D888888OOOOOOZ?OOOOOOZZZZZZZZZZZOOOO888D,
+D88888888888I~:,IO8OOOOOOOOOOOOOOOOO888D7