Skip to content

Instantly share code, notes, and snippets.

View y-yu's full-sized avatar

YOSHIMURA Yuu y-yu

View GitHub Profile

美学・芸術学概論

美学と芸術学

美学(Aesthetics)は1735年から。 芸術学(Science of Art)は1906年から。

@y-yu
y-yu / gba.md
Created April 20, 2013 07:54
GBA for Homebrew

HomebrewでGBA開発

主専攻実験のために、GBAを始めました。

homebrewの準備

ARM向けGCC

本家brewにはないのでサードパーティの奴を持ってくる。

import java.util.*;
import controlP5.*;
class Date {
String body;
HashSet<String> ok = new HashSet<String>();
Date (String b) {
body = b;
}
android-sdk freetype gradle libevent lua pcre texinfo
atk gauche grails libffi lv php theora
atkmm gd groovy libgcrypt mcrypt pidof tmux
autojump gdbm harfbuzz libgpg-error md5sha1sum pixman tree
base64 gdk-pixbuf haskell-platform libicns mecab pkg-config v8
bdw-gc gettext hevea libmpc mecab-ipadic python vimpager
cairo ghc icu4c libntlm mercurial rea
@y-yu
y-yu / zyoutoku.md
Last active December 19, 2015 18:19
情報特別演習 中間報告

XMLによる画像生成エンジンの制作

XMLによって記述された画像には SVG があるが、 SVGはラスタ画像と同等の表現力を得ようとしてあるので、 あまりにも冗長としたものになってしまっている。

そこで、少し表現力を落とす代りにシンプルなXMLで図を生成出来るようなエンジンの開発を目指す。

概要

@y-yu
y-yu / bench.rb
Created August 19, 2013 13:53
Rubyの正規表現のベンチマーク (参考:http://blog.livedoor.jp/dankogai/archives/50533165.html) (ruby 2.1.0dev (2013-08-19 trunk 42614) [x86_64-darwin12.4.0])
require 'benchmark'
re_alt = Regexp.compile('sa|st|tw|tu')
re_opt = Regexp.compile('s[at]|t[wu]')
match = 'abcdefghijklmnopqrstuvwxyz'
not_match = 'sssstttttttttssssssssuuuuu'
ntimes = 100000;
Benchmark.bm(8) do |x|
x.report('alt') { ntimes.times{ re_alt.match(match) } }
@y-yu
y-yu / relex.h
Created August 22, 2013 03:13
Rubyの改造(1)
#define YYSTYPE char *
extern int yylex ();
extern void init_yyc (char **);
extern void re_parse (char *);
@y-yu
y-yu / re_parse.y
Created August 22, 2013 03:14
Rubyの改造(2)
%{
#include <stdio.h>
#include <string.h>
#include "relex.h"
//---------------------------------------------------------------------------
//#define YYDEBUG 1
//#define YYERROR_VERBOSE 1
//int yydebug = 1;
@y-yu
y-yu / re.c.diff
Created August 22, 2013 03:15
Rubyの改造(3)
18a19,20
> #include "relex.c"
> #include "re_parse.c"
3545a3548,3554
> static VALUE
> rb_reg_parse (VALUE re)
> {
> re_parse( RREGEXP_SRC_PTR(re) );
> return re;
> }
@y-yu
y-yu / gomi.sh
Last active December 24, 2015 12:19
This is Neta!!!!!!!!!
#!/bin/sh
for i in `jot $1`
do
wget --no-verbose --post-data "_method=POST&data%5BEntry%5D%5Bid%5D=32" --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0" http://124.37.251.169/cpf/stu_003/votes/index/page:1 -O /dev/null
sleep 1
done