Skip to content

Instantly share code, notes, and snippets.

View intercaetera's full-sized avatar
plus ultra

Inter Caetera intercaetera

plus ultra
View GitHub Profile
@intercaetera
intercaetera / lisp.js
Created March 15, 2025 21:18
Lisp in JS
const symbols = [
// special forms
'lambda', 'when', 'rec', 'define',
// standard library
'inc', 'dec', 'add', 'mul', 'eq', 'head', 'tail', 'cons', 'list', 'isNil',
// variables
'a', 'b', 'c', 'k', 'l', 'm', 'n', 'x', 'y', 'z',
'as', 'xs',
'fn', 'double', 'map',
]
@intercaetera
intercaetera / .XCompose
Created September 20, 2024 19:06
xcompose-mahjong
include "%L"
<Multi_key> <1> <z> : "🀀"
<Multi_key> <2> <z> : "🀁"
<Multi_key> <3> <z> : "🀂"
<Multi_key> <4> <z> : "🀃"
<Multi_key> <5> <z> : "🀆"
<Multi_key> <6> <z> : "🀄︎"
<Multi_key> <7> <z> : "🀅"
defmodule DogsvscatsWeb.Fight do
use Phoenix.LiveView
alias Dogsvscats.FightMetrics
def mount(_params, _session, socket) do
if connected?(socket), do: :timer.send_interval(1000, :update)
{:ok, assign(socket, %{team: nil, state: FightMetrics.get_state()})}
end
const config = require('./config')
const Discord = require('discord.js')
const client = new Discord.Client()
const owner = "93034899488899072"
client.on('ready', () => {
console.log('This voice bar thing ready')
})
@intercaetera
intercaetera / index.js
Last active April 30, 2018 12:45
Discovery server watcher for Discord
require('dotenv').config()
const Discord = require("discord.js")
const client = new Discord.Client()
const mongoose = require('mongoose')
mongoose.connect(process.env.MONGO)
const db = mongoose.connection
db.on('error', console.error.bind(console, 'connection error '))
db.once('open', () => { console.log('connected to db') })
#!/usr/bin/env zsh
local LAMBDA="%(?,%{$fg_bold[green]%}λ,%{$fg_bold[red]%}λ)"
if [[ "$USER" == "root" ]]; then USERCOLOR="red"; else USERCOLOR="yellow"; fi
# Git sometimes goes into a detached head state. git_prompt_info doesn't
# return anything in this case. So wrap it in another function and check
# for an empty string.
function check_git_prompt_info() {
if git rev-parse --git-dir > /dev/null 2>&1; then
[/]
scrollbar-position='right'
cursor-shape='block'
scroll-on-keystroke=true
default-size-rows=24
use-theme-colors=false
custom-command=''
visible-name='austere'
use-custom-default-size=true
login-shell=false
@intercaetera
intercaetera / itempools.xml
Last active February 9, 2017 16:47
2 odcinek
<ItemPools>
<Pool Name="treasure">
<Item Name="Carpet Bombing" Weight="1000" DecreaseBy="1" RemoveOn="0.1" />
</Pool>
</ItemPools>
<?xml version="1.0" encoding"ISO-8859-1"?>
<UTFXML filename="tutorial.ale" path="DATA\FX\ENGINE">
<UTF_ROOT>
<ALEffectLib>
<ALEffectLib type="ALEffectLib" version="1.1">
</ALEffectLib>
<effect name="tutorial">
<unused>0, 0, 0; 0</unused>
<fx>
1, 32768, 1, 0xEE223B51
@import url('https://fonts.googleapis.com/css?family=Inconsolata|Overpass');
base03 = #002b36
base02 = #073642
base01 = #586e75
base00 = #657b83
base0 = #839496
base1 =#93a1a1
base2 = #eee8d5
base3 = #fdf6e3