Skip to content

Instantly share code, notes, and snippets.

View callmekohei's full-sized avatar

callmekohei callmekohei

  • Fukuoka / Japan
View GitHub Profile
@asufana
asufana / OSXでのFSharp環境整備.md
Last active July 6, 2016 15:36
OSXでのF#(FSharp)環境整備

OSX での F# (FSharp) 環境整備

環境情報

  • Mac OSX El Capitan 10.11.1
  • mono 4.2.1

mono インストール

@kos59125
kos59125 / kansuuji.R
Last active January 15, 2020 20:44
漢数字を数値に変換する
kansuuji <- function(x) {
# 漢字から数値へのマッピング
# 万未満の位
map_low <- c(
〇 = 0, 一 = 1, 二 = 2, 三 = 3, 四 = 4,
五 = 5, 六 = 6, 七 = 7, 八 = 8, 九 = 9,
十 = 10, 百 = 100, 千 = 1000
)
# 万以上の位
map_up <- c(
@kumatti1
kumatti1 / Module1.bas
Last active November 16, 2020 02:30
VBAでIInternetExplorerManager
Option Explicit
Private Type GUID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(0 To 7) As Byte
End Type
@simonista
simonista / .vimrc
Last active May 1, 2024 19:47
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@kumatti1
kumatti1 / Module1.bas
Last active June 22, 2019 08:56
マウスカーソル直下の要素を取得
'目的の要素を選択
Sub Main()
Application.OnTime Now + TimeSerial(0, 0, 2), "GetSub"
End Sub
@yatemmma
yatemmma / git-lesson.md
Last active February 15, 2022 03:36
git初心者への道 - お仕事で困らないレベルまでググっとします。

git初心者への道

まずやってみよう - コミットする、ログを見る、差分を見る

初登場するコマンド: init, add, commit, log, config, status, diff

@juanpabloaj
juanpabloaj / AdjustWindowHeight.vim
Last active September 21, 2020 22:24
Automatically fitting a quickfix window height, consider a long line as many lines. based in http://vim.wikia.com/wiki/Automatically_fitting_a_quickfix_window_height
au FileType qf call AdjustWindowHeight(3, 10)
function! AdjustWindowHeight(minheight, maxheight)
let l = 1
let n_lines = 0
let w_width = winwidth(0)
while l <= line('$')
" number to float for division
let l_len = strlen(getline(l)) + 0.0
let line_width = l_len/w_width
let n_lines += float2nr(ceil(line_width))
@pocketberserker
pocketberserker / AsyncInCSharpAndFSharp.ja.rst
Last active October 6, 2022 02:53
Async in C# and F#: Asynchronous gotchas in C# (Japanese translation)

C# と F# の Async: C# の非同期の落とし穴

原文

Async in C# and F#: Asynchronous gotchas in C#

原文著者

Tomas Petricek (@tomaspetricek)

翻訳者

@pocketberserker

2月に、私は毎年恒例のMVPサミット ── Microsoft が MVP のために主催するイベント ── に出席しました。私はボストンとニューヨークを訪問する機会を利用して、二つの F# に関する講演と Channel9 lecture about type providers の収録を行いました。他のすべての活動(しばしばパブで他の F#er を議論に巻き込んだり、朝まで長い睡眠)にもかかわらず、私はいくつかの講演に参加し果せました。

@yu-tang
yu-tang / IConstructor.cls
Created March 9, 2012 06:33
Constructor for VBA class module.
Option Explicit
Public Sub Initialize(args() As Variant)
'
End Sub
@pksunkara
pksunkara / config
Last active April 28, 2024 18:59
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta