Skip to content

Instantly share code, notes, and snippets.

@kunitoo
kunitoo / star.rb
Last active December 26, 2015 08:08
瞬き星 〜 第2回 ESM オフラインどう書く (2015/12/24) https://gist.github.com/mattsan/07674b095908fda117a0
require 'rubygems'
class Node
attr :name
attr_accessor :color
def initialize(name, color)
@name = name
@color = color
end
@kunitoo
kunitoo / error.txt
Last active December 15, 2015 04:12
rabbit error
/home/kunitoo/.rbenv/versions/2.3.0-preview2/lib/ruby/gems/2.3.0/gems/rabbit-2.1.8/lib/rabbit/parser/ext/entity.rb:355: warning: key "Dagger" is duplicated and overwritten on line 2409
/home/kunitoo/.rbenv/versions/2.3.0-preview2/lib/ruby/gems/2.3.0/gems/rabbit-2.1.8/lib/rabbit/parser/ext/entity.rb:357: warning: key "dagger" is duplicated and overwritten on line 2411
/home/kunitoo/.rbenv/versions/2.3.0-preview2/lib/ruby/gems/2.3.0/gems/rabbit-2.1.8/lib/rabbit/theme/default-item-mark-setup/default-item-mark-setup.rb:56: [BUG] Segmentation fault at 0x00000000000049
ruby 2.3.0preview2 (2015-12-11 trunk 53028) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0065 p:0019 s:0414 e:000412 BLOCK /home/kunitoo/.rbenv/versions/2.3.0-preview2/lib/ruby/gems/2.3.0/gems/rabbit-2.1.8/lib/rabbit/theme/default-item-mark-setup/def
c:0064 p:0224 s:0404 e:000403 BLOCK /home/kunitoo/.rbenv/versions/2.3.0-preview2/lib/ruby/gems/2.3.0/gems/rabbit-2.1.8/lib/rabbit/theme/applier.rb:94
c
@kunitoo
kunitoo / gist:0170099d3eacb3364a28
Last active December 26, 2015 08:07
第2回 ESMオフラインどう書く 例題 https://gist.github.com/mattsan/38a752dca30423902b0a
require 'rubygems'
require 'neography'
@neo = Neography::Rest.new
def clean_nodes
@neo.execute_query('match n detach delete n')
end
def setup_nodes
$('a.left').html(
$('<img>')
.attr('src', 'http://docs.komagata.org/theme/p0t/images/movable_face.gif')
.attr('class', 'mega-icon-invertocat')
);
@kunitoo
kunitoo / create_branch.sh
Created November 4, 2011 08:28
local,remoteにブランチを作成して移動する
#/bin/sh
if [ $# -ne 1 ]; then
echo "sh create_branch.sh 'branch_name'" 1>&2
exit 1
fi
git branch $1
git checkout $1
git push origin $1
@kunitoo
kunitoo / KokonTouzai.java
Created October 28, 2011 01:43
古今東西java.langの判定プログラムを愚直に作ってみた
package game;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class KokonTouzai {
public static void main(String[] args) throws IOException{
KokonTouzai kokonTouzai = KokonTouzai.newInstance();