Skip to content

Instantly share code, notes, and snippets.

View wesleybits's full-sized avatar

Wesley Bitomski wesleybits

  • Betwixt Things
  • Everywhere
View GitHub Profile
@wesleybits
wesleybits / README.md
Last active September 5, 2023 12:32
HackerRank-flavored Befunge

Grid

HackerRank has this delightful technical problem-solving quiz based around this programming language they call "Grid". One Gist and some digging around later, I find out that it's just Befunge with some extras. This is a HackerRank-flavored Befunge interpreter that we'll just call Grid here on out. By no means does this pretend to be any form of official implementation. It is a toy to waste time with.

LANGUAGE:

{
"COMMENT": "update this to work with your email account."
"read": {
"url": "imap://imap.gmail.com:993",
"user": "user@gmail.com",
"password": "app password",
"sslType": "SSL",
"enableXOAuth2": false,
"disableCertificateCheck": false,
"timeout": "30 s"
#!/usr/bin/env amm
import $ivy.`com.lightbend::emoji:1.3.0`
import com.lightbend.emoji._, Emoji._
import scala.util.Random
val bomb = 0x1f4a3.emoji
val metal = 0x1f396.emoji
val esc = '\u001b'
#lang typed/racket
(require/typed json
[#:opaque JSExpr jsexpr?]
[read-json (-> Input-Port JSExpr)]
[string->jsexpr (-> String JSExpr)])
(require/typed net/http-client
[http-sendrecv (-> String String
[#:method String]
@wesleybits
wesleybits / .tmux.conf
Created November 8, 2017 22:14
My tmux dotfile
set-option -ga terminal-overrides ",xterm-256color:Tc"
set-option -g mouse on
set-option -s set-clipboard off
set-option -g prefix C-z
unbind-key C-b
bind-key C-z send-prefix
set-option -g status-style bg=blue,fg=white
set-option -g status-position top
@wesleybits
wesleybits / core.clj
Created June 4, 2013 02:47
A simple speech jammer done with Overtone + Clojure
(ns speechjammer.core
(:use [overtone.live]
[overtone.core]))
(def -delay- (atom 0))
(definst jammer [del 0]
(delay-n (sound-in) 1.0 (/ del 1000.0)))
(defn set-delay [delta]