Skip to content

Instantly share code, notes, and snippets.

View anosatsuk124's full-sized avatar
πŸ’œ
β„’β„΄Ξ½β„―

Satsuki Akiba anosatsuk124

πŸ’œ
β„’β„΄Ξ½β„―
View GitHub Profile
# Horrible example of how to interface with a C++ engine ... ;-)
{.link: "/usr/lib/libIrrlicht.so".}
{.emit: """
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
#!/usr/bin/env bash
filename="$(basename "$1")"
temp="$(mktemp -d)/$filename"
pandoc -i "$1" -o "$temp".1.html
cat "$temp".1.html | perl -pe 's/<\/?ruby>//g' | perl -pe 's/<\/?rb>//g' | perl -pe 's/<rt>.*<\/rt>//g' | perl -pe 's/<svg.+$//g' > "$temp".2.html
pandoc "$temp".2.html --pdf-engine=lualatex -V documentclass=bxjsarticle -V classoption=pandoc -V pagestyle=empty -o "$filename".pdf
curl -fsSL https://tailscale.com/install.sh | sh
build_and_push:
name: Build image & push
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
#! /usr/bin/env fish
set -gx BW_SESSION (tmux showenv BW_SESSION | cut -d= -f2)
@anosatsuk124
anosatsuk124 / IDE
Last active October 26, 2022 20:49
This is my tmux configuration that makes your terminal the ide-like usage.
#! /bin/sh
CURRENT_WINDOW=$(tmux display-message -p '#I')
if [ "$1" = "kill" ] ; then
PANES_LENGTH=$(($(tmux list-panes | wc -l) - 1))
tmux swap-pane -s 0 -t $PANES_LENGTH
for i in $(seq 0 $(($PANES_LENGTH - 2))); do
nohup tmux kill-pane -t $i > /dev/null 2>&1 &
done

Keybase proof

I hereby claim:

  • I am anosatsuk124 on github.
  • I am anosatsuk124 (https://keybase.io/anosatsuk124) on keybase.
  • I have a public key ASBB7ePPTpBZv4Z1BttMG_TXObj72pcjNU_BYXZPe4dBzAo

To claim this, I am signing this object:

γ“γ‚Œ

γͺγ‚“γͺγ‚“γ γ‚γ†γ£γ¦ζ€γ£γŸγ‚‰Carbonっていうらしい。すごい。 5B658395-D8B5-4AF7-92A6-618D395102CB