Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View koron's full-sized avatar
🐱
meow

MURAOKA Taro koron

🐱
meow
View GitHub Profile
@koron
koron / test1.c
Last active January 12, 2024 14:07
foo() と foo(void) の違いを示す例
int foo();
void caller() {
foo();
}
/* コンパイルは通る */
@koron
koron / a5book-theme.yml
Created January 4, 2024 14:30
asciidoctor-pdf 2.3 のCJK theme
extends: default-with-font-fallbacks
font:
catalog:
merge: true
BIZ UDPGothic:
normal: BIZUDPGothic-Regular.ttf
bold: BIZUDPGothic-Bold.ttf
italic: BIZUDPGothic-Regular.ttf
bold_italic: BIZUDPGothic-Bold.ttf
@koron
koron / delete-all-artifacts.sh
Created August 21, 2020 02:05
Shell script to delete all artifacts from GitHub Actions
#!/bin/bash
#
# Delete all artifacts
#
# USAGE: ./delete-all-artifacts.sh {YOUR_PERSONAL_ACCESS_TOKEN} {OWNER_REPO}
#
# Where `{YOUR_PERSONAL_ACCESS_TOKEN}` should have `workflow` and `repo` scopes
# to work this script. `public_repo` can be used instead of `repo`, when you
# want delete artifacts from public repositories only.
#
@koron
koron / ANN_survey1.md
Last active June 8, 2023 07:44
近似最近傍探索のサーベイ

近似最近傍探索のサーベイ

入口となる研究

まずググってトップにでてくるやつ

近似最近傍探索の最前線

2019年の資料。読み切れてないが概観するにはとても良かった。 特に気になったのは以下の点

import java.util.List;
import java.util.ArrayList;
public class PnJava {
int[] primes = new int[5761455];
int primeLast = 0;
void addPrime(int n) {
primes[primeLast] = n;
@koron
koron / start_docker.md
Last active April 14, 2023 08:39
PostgreSQL for unit testing on Docker

Dockerで非永続的なPostgreSQLインスタンスを高速に起動するオプションの例

$ docker run --rm -it --name foo -p 5432:5432 --mount type=tmpfs,dst=//var/lib/postgresql/data -e POSTGRES_PASSWORD=abcd1234 postgres:14.7-alpine3.17 --fsync=off --full_page_writes=off --synchronous_commit=off
@koron
koron / indian-curry-recipe.md
Created June 19, 2016 06:17
「我が家のインドカレー」のレシピ抜粋

「我が家のインドカレー」のレシピ抜粋

[我が家のインドカレー][1] より抜粋

材料と分量

4皿分。利用順

材料 分量
@koron
koron / circleci-jan-4-2023-incident-report-ja.md
Created January 14, 2023 02:05
CircleCI のインシデントレポートのメモ

元記事 https://circleci.com/blog/jan-4-2023-incident-report/

ここにまとめたのは自身が知りたかった&理解した内容であって、有ってるかどうかは保証できない。 正確な情報は元記事を自分で読むこと。

何が起きたのか?

  1. 特定顧客のGitHub OAuthの不正利用発覚 2022-12-29
  2. 全顧客のGitHub Auth トークンのローテーション作業に着手 2022-12-31
@koron
koron / _README.md
Created November 29, 2022 15:52
Vimでアニメーションを再生するいにしえのスクリプト

使い方

  1. 3つの *.vim ファイルをダウンロードする(CP932で保存する)
  2. 3つのファイルを同じディレクトリに置く
  3. Vimを起動して :source gikozuza.vim もしくは :source moukoneyo.vim
  4. 鑑賞する
@koron
koron / 0-pipeline-performance.md
Last active October 25, 2022 08:46
Compare pipeline performance between Redis and Dragonfly