Skip to content

Instantly share code, notes, and snippets.

View y-yu's full-sized avatar

YOSHIMURA Yuu y-yu

View GitHub Profile
set-window-option -g mode-keys emacs
set -g mouse on
set -g default-shell /usr/local/bin/zsh
bind-key m run pane-maximize
bind-key e run tmux-editbuf
bind-key -rn M-Up resize-pane -U 5
@y-yu
y-yu / note.md
Last active July 21, 2019 15:24
Transcript
@y-yu
y-yu / tumbler.puml
Last active May 27, 2018 02:01
Tumbler
@startuml
autonumber
actor Alice
actor Tumbler
actor Bob
group on Blockchain
Tumbler -> Bob : 1BTCを供託する
@y-yu
y-yu / cobertura.xml
Created May 19, 2018 20:30
cobertura.xml
This file has been truncated, but you can view the full file.
<?xml version="1.0"?>
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
<coverage
line-rate="0.59" lines-valid="25420" lines-covered="14906" branches-valid="1227" branches-covered="877" branch-rate="0.71" complexity="0" version="1.0" timestamp="1526760035287">
<sources>
<source>--source</source>
<source>/Users/yyu/Desktop/playframework/framework/src/play-cache/src/main/scala</source>
<source>/Users/yyu/Desktop/playframework/framework/src/play-cache/src/main/java</source>
<source>/Users/yyu/Desktop/playframework/framework/src/play-docs/src/main/scala</source>
<source>/Users/yyu/Desktop/playframework/framework/src/play-docs/src/main/java</source>
@y-yu
y-yu / .cvimrc
Last active October 10, 2017 09:07
cVim
set cncpcompletion
set noautofocus
map b :buffer<Space>
imap <C-h> deleteChar
iunmap <C-j>
@y-yu
y-yu / mwe.tex
Last active September 3, 2017 09:14
mwe
% 次のコマンドを実行すると、エラーが発生する
% $ USE_HIRAGINO=true lualatex mwe
\documentclass[a5paper,lualatex,9pt,openany,ja=standard]{bxjsbook}
\usepackage{luacode}
\usepackage{fontspec}
\begin{luacode*}
USE_HIRAGINO = os.getenv"USE_HIRAGINO"
if USE_HIRAGINO == "true" then
@y-yu
y-yu / higher_kinded_polymorphism_in_swift.swift
Created August 8, 2017 19:01
Higher Kinded Polymorphism in Swift
class App<T, A> {
var underlying: Any
init(_ a: Any) {
underlying = a
}
}
protocol Newtype1 {
associatedtype A
@y-yu
y-yu / typeclass-in-csharp.cs
Last active April 11, 2017 10:31
Type class in C#
using System;
using System.Collections.Generic;
using System.Linq;
public interface Relation { }
public interface Relation<K, out V> : Relation
{
V Get(K key);
}
@y-yu
y-yu / json.cs
Created March 3, 2017 07:30
json
// Jsonシリアラザ・デシリアライザを示すインターフェース
public interface JsonWrite<T> {
string ToJsonString(T obj);
}
public interface JsonRead<T> {
T FromJsonString(string str);
}
// 具体的なシリアラザを呼び出す拡張メソッド