Skip to content

Instantly share code, notes, and snippets.

View kyontan's full-sized avatar
♨️

kyontan kyontan

♨️
View GitHub Profile
@esnya
esnya / lex.d
Created January 13, 2015 08:13
import std.algorithm;
import std.exception;
import std.stdio;
import std.range;
import std.traits;
import std.typecons;
class InvalidCharacerException : Exception {
this(string msg, string file = __FILE__, uint line = __LINE__) {
super(msg, file, line);
@nanase
nanase / Lury.md
Last active March 15, 2018 00:06
Lury 構想まとめ

![Lury][lury] 構想まとめ

※ 項目の名前は適当

※ 実装してみたい全ての機能を記述しているわけではありません

※ サンプルコードは古い構想を含んでいるかもしれません。注意して読んでください

目次

@aoitaku
aoitaku / symbol.rb
Last active March 29, 2017 02:36
Symbol#callでprocに変換して部分適用する
class Symbol
def call(*argv)
case
when block_given?
-> obj { self.to_proc[obj, *argv, &proc] }
when argv.size > 0
-> obj { self.to_proc[obj, *argv] }
else
self.to_proc
end
#!ruby
if false
class C
def m
xxxx
end
end
def mm
yyyy
@benevolent0505
benevolent0505 / README.md
Last active August 29, 2015 14:05
2014年度合宿用プログラム

2014年度合宿用スクリプト

2014年度の合宿参加者の集計に使ったプログラムの一覧。 コードの質はお察し下さい。 詳しく聞きたかったらbenevolent0505に連絡を。

first_members_to_csv.rb

第一回参加希望者の一覧を出力をしてくれるプログラム。

@alphaKAI
alphaKAI / test_glfw.d
Created March 31, 2014 04:53
The sample of GLFW3 and OpenGL. requirements: Derelict3, libglfw(3) : $ dmd test_glfw.d lib/libDerelictGL3.a lib/libDerelictUtil.a lib/libDerelictGLFW3.a -L/usr/lib/libdl.so -L/usr/lib/libglfw.so
import derelict.opengl3.gl,
derelict.opengl3.gl3,
derelict.glfw3.glfw3;
class TestGlfw{
static int width = 800;
static int height = 600;
static GLFWwindow* window;
this(){
@hayajo
hayajo / 00.md
Last active March 8, 2020 16:05
NDS#36 Go言語入門
/*
Copyright © 2014 Hidekazu Kobayashi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
@zakky-dev
zakky-dev / opopassign.d
Created January 28, 2014 14:41
opOpAssignで遊んでみる
import std.stdio;
class Test {
private string _value;
this(string value) {
this._value = value;
}
Test opOpAssign(string op)(Test delegate(string) test) if(op == ">>") {
@Akkiesoft
Akkiesoft / lcd.rb
Last active March 29, 2017 09:20
ストロベリー・リナックスのSB1602BWかスイッチサイエンスのI2C LCDを使って、Felica系カードの残高を表示するスクリプト。OSCのデモとかで使用中。
# coding: utf-8
# IC balance checker / 2013-2015 @Akkiesoft
# Licence:
# MIT License
# references:
# http://homepage3.nifty.com/slokar/pasori/libpafe-ruby.html
# http://iccard.jennychan.at-ninja.jp/format
require 'wiringpi'