Skip to content

Instantly share code, notes, and snippets.

View ackkerman's full-sized avatar
🏠
Working from home

Ackerman ackkerman

🏠
Working from home
View GitHub Profile
@ackkerman
ackkerman / lib.rs
Last active January 25, 2026 00:21
Loggerスタイル
#![allow(clippy::tabs_in_doc_comments)]
#![warn(rust_2018_idioms, unreachable_pub)]
#![forbid(elided_lifetimes_in_paths)]
#![cfg_attr(all(doc, nightly), feature(doc_auto_cfg))]
use anstyle::Style;
use env_logger::fmt::Formatter;
use log::{Level, Record};
#[cfg(feature = "custom-arg-formatter")]
use once_cell::sync::OnceCell;
@ackkerman
ackkerman / ubuntu-bot-setup.sh
Last active January 3, 2026 09:16
python, nodejs, go
#!/usr/bin/env bash
set -euo pipefail
echo "🚀 Start Ubuntu dev environment setup (pyenv + nvm)"
#######################################
# dev essentials
#######################################
sudo apt update
sudo apt upgrade -y
@ackkerman
ackkerman / index.html
Created December 19, 2025 04:43
simple local media gallery
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>ローカル動画ギャラリー</title>
<style>
:root {
color-scheme: light;
}
@ackkerman
ackkerman / -keep-readme-ui-preview-up-to-date-with-pre-commit-and-playwright.md
Last active December 12, 2025 04:46
pre-commitでUIプレビューを自動生成し、READMEを常に最新に保つ仕組み
title slug published-on published-at
pre-commit+playwrightでUIプレビューを自動生成し、READMEを常に最新に保つ仕組み
keep-readme-ui-preview-up-to-date-with-pre-commit-and-playwright
2025-12-12 05:00:00 -0800

UIを触るたびにREADMEのスクリーンショットが古くなる問題は、地味にストレスが溜まる。 毎回手動でキャプチャして差し替えるのも面倒だし、やらなくなるのが目に見えている。

@ackkerman
ackkerman / Summary.ja.md
Created March 7, 2025 11:45
[Archived]

Spaceship Titanic Competition: サマリーレポート

はじめに

本レポートは、Kaggle 上の Spaceship Titanic コンペティションにおける知見と結果をまとめたものです。本コンペティションの目的は、Spaceship Titanic が時空の異常との衝突時に、どの乗客が別の次元に輸送されたかを予測することです。私たちは、乗客データの分析と機械学習技術を用いて予測モデルの構築を行いました。

データ概要

データセットは以下の特徴量から構成されています:

Spaceship Titanic コンペティションについて

このノートブックファイル 1_spaceship-titanic/spaceship-titanic-competition-end-to-end-project.ipynb は、Spaceship Titanic データセットを使用したバイナリ分類のための Kaggle コンペティションの包括的なガイドを含んでいます。以下に、内容の詳細な説明を示します。

ノートブックの目的

このプロジェクトの目的は、データセットで提供されるさまざまな特徴を使用して、乗客が別の次元に輸送されるかどうかを予測することです。

ノートブックの内容

  1. データの基本的な理解: データセットの構造と特徴の概要。
  2. 探索的データ分析 (EDA): データの分布と関係を理解するための視覚化と統計分析。
div.js-calendar-graph {
margin-top: 1rem;
display: flex !important;
flex-direction: column !important;
align-items: flex-end !important;
overflow: hidden !important;
margin-right: 8px !important;
margin-left: 8px !important;
}
@ackkerman
ackkerman / render-codeblock.html
Created June 5, 2022 11:22
Hugo: layouts/_default/_markup/に設置するテンプレートファイル。コードブロックの名前を表示するdivタグを追加する。 [Archived]
<div>
{{- $name := .Attributes.name -}}
{{ with $name }}<div class="codeblock--name">{{ . }}</div>{{ end }}
<div class="codeblock--content">
{{- highlight (.Inner | safeHTML) .Type .Options }}
</div>
</div>
@ackkerman
ackkerman / copy-code-button.css
Last active December 12, 2025 04:21
[Archived]
<style>
.codeblock--name {
width: fit-content;
/* margin: 1rem 0 0; */
font-size: 0.9rem;
color: white;
/* background-color: #272822; */
background-color: #4f4f4f;
padding: 0.3rem 0.8rem !important;
/* font-weight: 400; */
@ackkerman
ackkerman / publish.sh
Last active December 12, 2025 04:21
GitHub Pagesへのデプロイを自動化するシェルスクリプト。 [Archived]
#!/bin/bash
USERNAME='moxak'
function publish() {
USERNAME=$1
ESC=$(printf '\033')
echo "---Build by hugo."
hugo --minify >/dev/null
echo "---Move and copy files."
mv content/*/*.png static/img/ &>/dev/null
cp CNAME docs/