Skip to content

Instantly share code, notes, and snippets.

View kb10uy's full-sized avatar
😋
Coding at home

KOBAYASHI Yū kb10uy

😋
Coding at home
View GitHub Profile
#coding: utf-8
require "strscan"
class Notepad
def initialize()
@s_inc="メ"
@s_dec="モ"
@s_nxt="note"
@s_prv="pad"
@kb10uy
kb10uy / bash43.sh
Last active August 29, 2015 14:06
Bash 4.3をパッチ付きでビルドするシェルスクリプト
#!/usr/bin/env bash
echo 'Are you running in sudo?'
echo 'Yes : Press Enter.'
echo 'No : Ctrl-C and run "sudo ./bash43.sh"'
read waiting
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz
tar xf bash-4.3.tar.gz
cd bash-4.3.tar.gz
@kb10uy
kb10uy / Easing.cs
Created October 11, 2014 09:14
jQuery.easing.jsを正規表現でなんとかしてC#にしてところどころ手作業で直したイージング関数のクラスです。
//This code is semi-auto-generated with regular expressions from jQuery.easing
//Under the MIT License.
using System;
namespace EasingSharp
{
public delegate double EasingFunction(double time, double timeDuration, double startValue, double valueDuration);
public static class Easing
@kb10uy
kb10uy / SortedLinkedList.cs
Created October 14, 2014 11:56
TKeyの数が少なくTが大量にあるときに最速っぽそうなコレクション n番煎じの可能性な
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Kb10uy.Collections.Generic
{
public class SortedLinkedSet<T, TKey> : IEnumerable<T>, ICollection<T>
where TKey : IComparable<TKey>, IEquatable<TKey>
# Created by newuser for 5.0.6
# 少し凝った zshrc
# License : MIT
# http://mollifier.mit-license.org/
########################################
# 環境変数
#export LANG=ja_JP.UTF-8
@kb10uy
kb10uy / LinearLaser.cs
Last active August 29, 2015 14:10
Kbtter5のレーザー実装
public static OptionSelectionInformation LinearLaserOptionInformation = new OptionSelectionInformation()
{
Name = "直線レーザー",
Description = "普通のレーザーです",
Operation = LinearLaserOption,
ModeStrings = new[] { "Kbtter5", "魔理沙" },
UserValueCombination = OptionSelectionValue.Direction | OptionSelectionValue.Mode,
DefaultValue = new OptionInitializationInformation()
{
Direction = OptionDirection.Up,
@kb10uy
kb10uy / DisDaydream.cs
Created December 16, 2014 10:43
こころぴょんぴょんあーの氏のDaydream.exeでにゅうりょこころぴょんぴょんうされたぶんしょうをそれっぽこころぴょんぴょんうもとにもどすツール
using System;
using System.IO;
using System.Text;
public class DisDaydream {
public static void Main(string[] args) {
if (args.Length==0) {
Console.WriteLine("Usage : DisDaydream <input file> [<output file>]");
}
var inputf=args[0];
# ~/.tmuxinator/default.yml
name: default
root: ~/
# Optional tmux socket
# socket_name: foo
# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start
# prefixキーをC-aに変更する
set -g prefix C-a
# C-bのキーバインドを解除する
unbind C-b
# キーストロークのディレイを減らす
set -sg escape-time 1
# ウィンドウのインデックスを1から始める
@kb10uy
kb10uy / お話をするお話.cs
Created February 10, 2015 09:59
ごちうさ6羽を見て思いついたこと
using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
public static void Main(string[] args) {
Func<string> お話 = () => "ごちうさ6羽";
お話().をするお話()();
お話().をするお話().をするお話().をするお話().をするお話()()()()();