Skip to content

Instantly share code, notes, and snippets.

View AlphaDoStar's full-sized avatar
🥺
배고파요

AlphaDo AlphaDoStar

🥺
배고파요
View GitHub Profile
@AlphaDoStar
AlphaDoStar / fishbase.exs
Last active September 19, 2025 22:04
Fetch Korean fish species data from FishBase
Mix.install([
{:duckdbex, "~> 0.3.14"},
{:nimble_csv, "~> 1.3.0"}
])
{:ok, db} = Duckdbex.open()
{:ok, conn} = Duckdbex.connection(db)
{:ok, _ref} = Duckdbex.query(conn, "INSTALL 'parquet';")
{:ok, _ref} = Duckdbex.query(conn, "LOAD 'parquet';")
@AlphaDoStar
AlphaDoStar / monitor.exs
Last active June 29, 2025 10:13
유저 모니터링 예제
Mix.install([{:iris_ex, git: "https://github.com/AlphaDoStar/IrisEx.git", tag: "v0.3.3"}])
defmodule Monitor.Application do
use IrisEx.Application,
bots: [Monitor.Bot],
ws_url: "ws://#{System.get_env("IP")}:3000/ws",
http_url: "http://#{System.get_env("IP")}:3000",
children: [Monitor.Agent]
end
@AlphaDoStar
AlphaDoStar / newmem.exs
Created June 24, 2025 17:49
유저 입장 시 반응 예제
Mix.install([{:iris_ex, git: "https://github.com/AlphaDoStar/IrisEx.git", tag: "v0.3.3"}])
defmodule NEWMEM.Application do
use IrisEx.Application,
bots: [NEWMEM.Bot],
ws_url: "ws://redroid:3000/ws", # Websocket Address
http_url: "http://redroid:3000" # HTTP Address
end
defmodule NEWMEM.Bot do