Skip to content

Instantly share code, notes, and snippets.

View localmin's full-sized avatar
🚩
Want many flags

localmin localmin

🚩
Want many flags
View GitHub Profile
@localmin
localmin / review2022.md
Last active January 2, 2023 05:53
2022を振り返る的な

2022を振り返る的な

Blogの微調整が間に合わなかったのでこちらで書きますその2

年があけてしまいましたが、例年通り2022を振り返ります。

アニメ

新作アニメに関しては 話数単位で選ぶ、2022年TVアニメ10選 に書いたことがだいたい全部です。

@localmin
localmin / anime2022.md
Last active December 31, 2022 17:52
話数単位で選ぶ、2022年TVアニメ10選

話数単位で選ぶ、2022年TVアニメ10選

Blogの微調整が間に合わなかったのでこちらで書きます。

今年もaninado さんが集計したくださっている「話数単位で選ぶ、2022年TVアニメ10選」に参加させていただきます。

ページに記載されているルールは以下の通り

■「話数単位で選ぶ、2022年TVアニメ10選」ルール

  • 2022年1月1日~12月31日までに放送されたTVアニメ(再放送を除く)から選定。
# Disable the newline at the start of the prompt
add_newline = false
[character]
symbol = "( ╹◡╹)"
style_success = "green"
style_failure= "red"
[battery]
full_symbol = "🔋"
@localmin
localmin / Default.json
Created May 16, 2020 15:51
iterm2 my defaulst profile
{
"Use Non-ASCII Font" : true,
"Tags" : [
],
"Ansi 12 Color" : {
"Red Component" : 0.51372549019607838,
"Color Space" : "sRGB",
"Blue Component" : 0.58823529411764708,
"Green Component" : 0.58039215686274515
@localmin
localmin / keymap.cson
Last active August 26, 2021 02:34
My keybindings for Inkdrop's vim plugin
{
".CodeMirror.vim-mode": {},
".CodeMirror.vim-mode.normal-mode textarea": {
"escape": "vim:reset-normal-mode"
},
".CodeMirror.vim-mode:not(.insert-mode):not(.key-buffering) textarea": {
"h": "vim:move-left",
"left": "vim:move-left",
"backspace": "vim:move-left",
"l": "vim:move-right",
@localmin
localmin / nocturn.txt
Last active December 12, 2017 09:52
Key assign like Nocturn(vim) for Krile Starryeyes .
[Global]
I: FocusToInput
Tab: FocusToTimeline
S: FocusToSearch
[Timeline]
Ctrl+H: SelectLeftTab
H: SelectLeftColumn
J: MoveDown
K: MoveUp
Space: MoveTop
@localmin
localmin / n_subset.c
Created October 31, 2017 13:38
Get a subset of [1, 2, ... n], by the Reverse Search Method. (Input is n.)
#include <stdio.h>
#include <stdlib.h>
void ReverseSearch(int x[], int i, int n){
int j;
printf("{ ");
if(i == 0)printf("{} ");//Empty set
for(j = 1; j <= n ; j++){
if(x[j] == 1)printf("%d ", j);
@localmin
localmin / pi_MonteCarlo.c
Last active October 18, 2017 15:46
Get Pi by Monte Carlo method.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
unsigned int next;
unsigned int A = 1103515245, C = 12345, M = 2147482648;
double my_rand(void){
next = (next * A + C) % M;
@localmin
localmin / JointDiagonalize.m
Last active October 14, 2017 09:01
Matlab Function for Joint Diagonalize for BSS
function G = JointDiagonalize( S )
[ ~, N ] = size( S );
halfN = N / 2;
% Make two Correlation matrices
S1 = S(:,1:halfN);
S2 = S(:,halfN + 1:N);
Ex1 = (S1 * S1')/halfN;
@localmin
localmin / sphere_Monte_Carlo.m
Last active June 20, 2017 16:02
This script gets the volumes of D-mentional unit sphere by Monte Carlo simulation.
clear
% Number of random data points,case of 100, 1000 & 10000
N = [100,1000,10000];
[~,A] = size(N);
% Dimension numbers
D = 20;
for d = 1:D