Skip to content

Instantly share code, notes, and snippets.

@Comamoca
Comamoca / single-binary-languages.md
Last active April 27, 2024 14:41
シングルバイナリになる言語一覧
  • C

    手続き型の汎用高水準言語。
    ライブラリを静的リンクすることでシングルバイナリを生成できる。

  • C++

  • C#

const str = `
⠀⠀⠀⠀⠀⠀⠀⣤⣤⣤⣤⣤⣤⡄⠀⠀⣀⣤⣤⣤⣤⡄⠀⠀⠀⣀⣤⣤⣤⣤⡀⠀⠀⠀⣀⣤⣤⣤⣤⡀⠀⠀⣀⡀⠀⣠⣶⠆⣴⡖⠀⣀⡀⠀⢀⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⡄
⠀⠀⠀⠀⠀⢀⣼⡿⠉⠉⠉⠉⠉⠀⣠⣾⡿⠋⠉⠙⣿⡿⠀⣠⣾⠟⠋⠉⢹⣿⡇⠀⣠⣾⠟⠋⠉⢹⣿⡇⠀⠀⣿⣷⣠⣿⠃⣼⣟⣤⡾⠟⠁⢀⣾⡟⠉⠉⣹⡿⠉⠉⢉⣿⠏⠀
⠀⠀⠀⠀⣠⣾⣿⣶⣶⣶⣦⠀⠀⣴⣿⠋⠀⠀⠀⣸⣿⢇⣼⡿⠃⠀⠀⠀⣼⣿⢃⣾⡿⠁⠀⠀⠀⣾⣿⠁⠀⠀⠛⣩⣿⢃⣾⣟⣝⠋⠀⠀⢀⣾⣟⣀⣀⣴⣿⣁⣀⣠⣿⠏⠀⠀
⠀⠀⠀⠀⠛⠋⠁⠀⠀⣿⡿⠀⣼⣿⠃⠀⠀⢀⣼⣿⠋⣾⣿⠁⠀⠀⣀⣼⡿⢃⣾⡿⠁⠀⠀⢀⣾⡿⠁⣴⣶⠾⣿⡿⢃⣾⡟⠙⣿⣷⠄⢀⣾⠟⠛⠛⠛⠛⠛⠛⢻⣿⠏⠀⠀⠀
⠀⠀⣰⣶⣆⣀⣀⣤⣾⠟⠁⣰⣿⣯⣀⣀⣤⣾⠟⠁⣸⣿⣧⣀⣀⣴⣿⠟⠁⢸⣿⣇⣀⣀⣴⣿⠟⠀⠈⣁⣤⣾⠟⣀⣾⠏⠀⣀⣾⠄⣠⣾⠏⠀⠀⠀⠀⠀⠀⣠⣿⠏⠀⠀⠀⠀
⠀⠀⠈⠛⠿⠿⠛⠋⠁⠀⠀⠀⠛⠿⠿⠛⠋⠁⠀⠀⠈⠛⠿⠟⠛⠋⠀⠀⠀⠈⠛⠿⠟⠛⠉⠀⠀⣶⡿⠟⠋⠀⠀⠾⢿⣷⠾⠿⠋⣠⣿⠏⠀⠀⠀⠀⠸⠿⠶⠿⠋⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣤⢤⣄⠀⣠⣶⠦⠀⠀⠀⠀⠀⠰⣦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡴⢟⣯⣄⣸⣿⣷⠿⠥⣴⣾⠄⠀⠀⠀⣴⡿⠋⠀⠀⠀⠀⠀⠀⠀⢀⣿⡆⠀⠀⠀⠀⢄⡀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
import { join } from "https://deno.land/std@0.220.1/path/mod.ts";
console.log(`import.meta.url: ${import.meta.url}`);
console.log(`Deno.cwd: ${Deno.cwd()}`)
const modPath = join(Deno.cwd(), "haru.config.ts")
console.log(`modPath: ${modPath}`)
const mod = await import(modPath)
FROM rust:latest
WORKDIR /build
RUN git clone https://github.com/gleam-lang/gleam
RUN cd gleam \
&& cargo build --release \
&& cp ./target/release/gleam /bin
const tipichapa = ["チピチピ", "チャパチャパ", "ドゥビ ドゥビ", "ダバ ダバ"]
const dubi = "マヒコミ ドゥビ ドゥビ\nブン ブン ブン ブン"
while (true) {
const word = Array.from({length: 4}, () => tipichapa[Math.floor(Math.random() * tipichapa.length)]).join("")
console.log(word)
if (word == tipichapa.join("")) {
break
}
#r "nuget: Spectre.Console, 0.48.1-preview.0.28"
#r "nuget: FsSpectre, 0.4.6"
open Spectre.Console
open FsSpectre
let wa = "[#eb6ea6]わ[/]"
let nn = "[#c86fab]ん[/]"
let da = "[#5fbfb7]だ[/]"
let fu = "[#fdd000]ふ[/]"
fn main() {
let result = {
fn 半端な生命() -> &'static str {
return "半端な生命";
}
};
fn 半端な生命() -> &'static str {
return "少々ここらでオーバライド";
}
echo initializeing...
rm ./nvim.appimage
rm squashfs-root/
sudo unlink /usr/sbin/nvim
sudo rm -r /squashfs-root/
echo download nightly image...
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod u+x ./nvim.appimage
@Comamoca
Comamoca / Dockerfile
Last active October 20, 2023 02:08
Tailwind&DaisyUI run on Docker🐳
FROM oven/bun:alpine
RUN bun install -D tailwindcss
RUN bun i -D daisyui@latest
WORKDIR /build
ENTRYPOINT ["bunx", "tailwindcss", "-i", "./style.css", "-o", "./dist/tailwind.css", "--watch"]

Keybase proof

I hereby claim:

  • I am comamoca on github.
  • I am comamoca_dev (https://keybase.io/comamoca_dev) on keybase.
  • I have a public key ASA891rkK42Uti4YmhYTiGERXRVoT52YwCM6rxt2SDCoSQo

To claim this, I am signing this object: