- Word: 16bits
- 256bit Registers (16 Words)
- ALU
- Shift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addgem() { | |
echo Add $1 | |
echo "gem '$1'" >> Gemfile | |
bundle | |
} | |
function sinatra-init() { | |
bundle init | |
addgem sinatra | |
echo "require 'sinatra'" > app.rb | |
echo "get '/' do 'Hello world.' end" >> app.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'sinatra' | |
gem 'sqlite3' | |
gem 'activerecord' | |
gem 'bcrypt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diamond |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RGB<T> = Tuple<T,T,T> | |
RGBA<T> = Tuple<T,T,T,T> | |
XY<T> = Tuple<T,T> | |
XYZ<T> = Tuple<T,T,T> | |
Vector<T> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e "\e[1;40m" | |
clear | |
while :; do | |
echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) | |
sleep 0.05 | |
done | awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
http://d.hatena.ne.jp/nano_001/20080518/1211120301
- 256ドットx縦224
- 8x8
- スプライトとBGに各4パレット使える。
- 1パレットは4色。ただし4色のうち1色は透明色なので、実質3色。
- BGとスプライトは、それぞれ8ドット * 8ドットのタイルが 16 * 16=256個並んだパターンテーブルというものを持ち
- 128 x 128 (8x16)