Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢
on going

yoh yohhoy

🐢
on going
View GitHub Profile
@qnighy
qnighy / normalforms.md
Last active Jul 27, 2020
いろいろな標準形
View normalforms.md

Jordan標準形 (Jordan normal form)

K:代数閉体, V:有限次元のK-線形空間, f : V → V 線形写像のとき、Vの基底を上手く選ぶと表現行列がJordanブロックを対角線上に並べた行列になる。

この標準形はJordanブロックの順列を除いて一意である。

計算方法1: 固有方程式を解き固有値を得る。(A-λI)x=0となるxを探す。(A-λI)y=xとなるyを探す。これを止まるまで繰り返すことで基底の一部が得られる。別の固有ベクトルや別の固有値に対しても同様のことを行う。

有理標準形 (Frobenius normal form)

@tatesuke
tatesuke / gist:f96ff6756e4169fe4239f6f2a4f02a33
Created May 9, 2016
javadocで使われている英単語 TOP10000
View gist:f96ff6756e4169fe4239f6f2a4f02a33
the 285850
of 82114
is 79278
a 78948
to 74413
this 61625
if 52123
in 36277
and 35898
be 35465
@yohhoy
yohhoy / Makefile.template
Last active Nov 14, 2015
Makefile template for MacOS/brew
View Makefile.template
DEBUG?=1
SRCS=$(wildcard *.cpp)
OBJS=$(SRCS:.cpp=.o)
DEPENDS=Makefile.depends
BOOST_PATH=$(shell brew --prefix boost)
CXXFLAGS=-std=c++14 -W -Wall -I$(BOOST_PATH)
LDFLAGS=-L$(BOOST_PATH)/lib
@7shi
7shi / text.md
Last active Mar 15, 2017
アスキードワンゴ編集部 編集長 鈴木嘉平氏 『技術書を出版するには』
View text.md
@takahashim
takahashim / gist:ca5909eb26d921532661
Last active Aug 29, 2015
技術解説書向け用字用語(案)
View gist:ca5909eb26d921532661
# 原則として開く用語。修正前→修正後
敢えて→あえて
当たって→あたって
余り→あまり
予め→あらかじめ
有り→あり
或いは→あるいは
如何→いかが
幾つか→いくつか
致し→いたし
@AlainODea
AlainODea / HelloCovariance.java
Last active Oct 13, 2020
Exception in thread "main" java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
View HelloCovariance.java
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
public class HelloCovariance {
public static void main(String[] args) {
ConcurrentHashMap<String, String> properties = new ConcurrentHashMap<>();
Set<String> keySet = properties.keySet();
}
}
@melpon
melpon / yakinikutabetaiJP.rst
Last active Oct 18, 2016
焼肉食べたいリスト
View yakinikutabetaiJP.rst
@aras-p
aras-p / preprocessor_fun.h
Last active Nov 27, 2020
Things to commit just before leaving your job
View preprocessor_fun.h
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@rmartinho
rmartinho / hate.markdown
Last active Jul 15, 2020
I will hate you
View hate.markdown

Dear C++ library writer,

  1. If your library forces me to use new all over, I will hate you.

  2. If your library has types with bogus values, I will hate you.

  3. If the documentation for your library gets the terminology of its own domain wrong, I will hate you.

  4. If I say "My God, it's full of stars!" when I see the function signatures in your library, I will hate you.

You can’t perform that action at this time.