Skip to content

Instantly share code, notes, and snippets.

diff --git a/zathura/callbacks.c b/zathura/callbacks.c
index 7db22f8..a8db4ed 100644
--- a/zathura/callbacks.c
+++ b/zathura/callbacks.c
@@ -254,7 +254,10 @@ cb_page_layout_value_changed(girara_session_t* session, const char* name, girara
unsigned int page_padding = 1;
girara_setting_get(zathura->ui.session, "page-padding", &page_padding);
- page_widget_set_mode(zathura, page_padding, pages_per_row, first_page_column);
+ bool page_right_to_left = false;
@voluntas
voluntas / death_march.md
Last active December 29, 2023 15:36
デスマーチが起きる理由 - 3つの指標

デスマーチが起きる理由 - 3つの指標

著者: 青い鴉(ぶるくろ)さん @bluecrow2

これは結城浩さんの運用されていた YukiWiki に当時 Coffee 様 (青い鴉(ぶるくろ)さん)がかかれていた文章です。 ただ 2018 年 3 月 7 日に YukiWiki が運用停止したため消えてしまいました。その記事のバックアップです。

今は 404 ですが、もともとの記事の URL は http://www.hyuki.com/yukiwiki/wiki.cgi?%A5%C7%A5%B9%A5%DE%A1%BC%A5%C1%A4%AC%B5%AF%A4%AD%A4%EB%CD%FD%CD%B3 になります。

昔、自分がとても感銘を受けた文章なので、このまま読めなくなるのはとてももったいないと思い、バックアップとして公開しています。

@tanutarou
tanutarou / poisson.ipynb
Last active August 31, 2022 21:03
ポアソン分布に対するベイズ推論(メール受信数を例に実験)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tanutarou
tanutarou / categorical.ipynb
Last active December 8, 2017 22:31
カテゴリカル分布に対するベイズ推定(サイコロの出る目の確率推定)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shyouhei
shyouhei / gist:266178ffedab5767a5b69b972c76f88a
Created September 27, 2017 07:31
優秀なプログラマーになるためのコツ

優秀なプログラマーになるためのコツ

重要な順で

優秀なプログラマーになるには非常に長い時間がかかるという現実を直視すべし

優秀なプログラマーというのは寝ている間に異世界に召喚されて無双するのとはわけが違うんですよ。

自分の例で言うとプログラミングを始めた中学生の時から優秀なプログラマだったかって、そんなわけない。みんなヘッポコからスタートしているに決まってるわけです。以来二十余年、地道に生き恥を晒し続けてきた結果として、現在いちおう業界の末席を汚すところまで来ている。このプロセスから目を背けるべきではないです。優秀なプログラマーに生まれる人間なんかいない。優秀なプログラマーに「育つ」んだし、それには時間が必要。今日から無双したいと思うな。

@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active May 20, 2024 09:52
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.

@PhilOwen
PhilOwen / Main.hs
Last active October 27, 2017 08:10
Rのニューラルネットを、Haskellからインラインで
import Language.R.Instance(runRegion)
import Language.R.QQ
xorLearnAndPredict :: [[Double]] -> IO ()
xorLearnAndPredict table = do
let [xs, ys, zs] = table
runRegion $ do
[r|
library("neuralnet")
@KodrAus
KodrAus / Profile Rust on Linux.md
Last active November 14, 2023 17:19
Profiling Rust Applications

Profiling performance

Using perf:

$ perf record -g binary
$ perf script | stackcollapse-perf.pl | rust-unmangle | flamegraph.pl > flame.svg

NOTE: See @GabrielMajeri's comments below about the -g option.

import itertools
def fizzbuzz(begin, end):
xs = [lambda i: print(i) for _ in range(15)]
xs[3 - 1] = lambda i: print("fizz")
xs[5 - 1] = lambda i: print("buzz")
xs[15 - 1] = lambda i: print("fizzbuzz")
it = itertools.cycle(xs)
for i in range(begin, end + 1):