Skip to content

Instantly share code, notes, and snippets.

View voluntas's full-sized avatar
🎲
Focusing

V voluntas

🎲
Focusing
View GitHub Profile
@jmblog
jmblog / gist:6077993
Last active November 22, 2021 08:37
所得税と住民税の計算方法

所得税(国税)

所得税の計算方法

所得税額 = (所得金額(A) - 所得控除額(B)) × 税率 - 税額控除額(C)

  • 「所得金額(A)- 所得控除額(B)」は 課税所得金額 といい、1,000円未満の端数を切り捨てる。

所得税の税率

open Spotlib.Spot
open GapiUtils.Infix
open GapiLens.Infix
open GapiLens.StateInfix
open GapiMonad.SessionM
module OAuth2 = GapiOAuth2
module Conv = GapiConversation
module Service = GapiService

STUN implementations

  • stund
  • Content: server daemon and test client for STUN, RFC-3489 only
  • URL does not load, the project seems abandoned
  • The code is also available on SourceForge, last update was on January 2012
  • TCP and TLS modes not supported
  • The server needs two IPs, it’s mandatory and can not be configured
  • C++, no extra libraries required, Windows port available
  • Version = 0.97 (0.96 package available on Debian, 5 years without updates)
@johtani
johtani / yokozunamemo.md
Created May 29, 2013 15:43
YokozunaがSolr使ってるというので、読んでみてメモを取ってみた。

Yokozunaに関するメモ

前提

RiakもErlangもわかってない人が読みといてます。

概要

  • RiakにSolrを内蔵して、Riakにて全文検索が可能にするプロダクト。
  • OpenSourceで公開されている。
@lastcanal
lastcanal / luerl_table_with_erlang_fun.erl
Last active September 12, 2016 23:06
Setting Erlang functions as values on a Luerl tables
%% Initialize the luerl state
Lua0 = luerl:init(),
%% Create a new empty table
{HttpTable, Lua1} = luerl_emul:alloc_table(Lua0),
%% Set the empty table to the global key `http`
Lua2 = luerl_emul:set_global_key(<<"http">>, HttpTable, Lua1),
%% You can also set up the global table from Lua
@shkumagai
shkumagai / using-unicode-in-erlang_ja.rst
Last active January 31, 2018 09:53
using unicode in erlang [ja]
@kuenishi
kuenishi / Erlang_risk.md
Last active December 14, 2015 09:09 — forked from repeatedly/d_risk.md

ついに顕在化し始めてもいない「Erlang/OTPリスク」

英語圏ではかなり前からErlang/OTPを開発し続けることのリスクについて語られていたが,具体的な弊害が出て来たので,単なるメモ.日本では起こり得ない未来だと思う.

若手エンジニアの不足

COBOLのように需要が逼迫しているのに人材の供給が増えず需給ミスマッチが起っているわけでは無く,需要も供給も増えないという状況下でわずかながら需要が上回っている質の悪い状況がErlang/OTPに起きている.特に深刻なのは高価な若手エンジニアの採用が絶望的に難しいという現実だ.Haskellが台頭して数年経ちScalaがメインストリームの先頭を突っ走る2013年において全く別の関数型言語もどきを勉強しようとする若者はよほどの物好きしかいない.20~30歳のErlang/OTPエンジニアを雇うのはそれほど難しい上にコストがかかる.優秀な30代前半の若手エンジニアを雇いたいという企業の思いとは裏腹にErlang/OTP新たに学ぶ若者は絶滅寸前だ.

とても優秀な若手を雇用できるチャンスが巡って来た.採用担当者はこう尋ねる.「Erlang/OTPは習得していますか?」「もちろんRuby/Scalaはお手の物です.Haskellもある程度可能です」「もう一度伺いますがErlang/OTPまたはCは習得していますか?」「申し訳ございません 未習得です」

@repeatedly
repeatedly / msgpack_issue_121.md
Last active November 30, 2021 02:09
MessagePackが文字列とバイナリをわけないのは問題?

MessagePackが文字列とバイナリをわけないのは問題?

msgpack/msgpack#121

Objective Cの実装使ってるとある問題にぶちあたった.なので,文字列をちゃんとバイナリ(Raw)と分けるべき,という提案

(*) 俺は熟読したわけではないので,中身が気になる人はちゃんと本スレを読みましょう

そもそもMessagePackとは

@kenjiskywalker
kenjiskywalker / nginx_ssl_server_name.md
Last active February 18, 2024 21:11
nginxのserver_nameとSSLの設定についてのメモ
@makotoworld
makotoworld / gist:4159459
Created November 28, 2012 06:42
python で指定日時をエポック秒に変換する
import datetime
import time
int(time.mktime(datetime.datetime(2012, 3, 3, 22, 0, 57).timetuple()))