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
<!DOCTYPE html><html><head><title>Pilot</title> | |
<link href="pilot.css" rel="stylesheet" type="text/css"> | |
<style type="text/css"> | |
* { margin: 0; padding: 0; } | |
body { | |
/*font-family: -apple-system, BlinkMacSystemFont,*/ | |
font-family: "Helvetica Neue", "Segoe UI", sans-serif; | |
letter-spacing: 0.01em; | |
background-color: #170f0f; |
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
* { margin: 0; padding: 0; } | |
body { | |
font-family: -apple-system, BlinkMacSystemFont, | |
"Helvetica Neue", "Segoe UI", sans-serif; | |
letter-spacing: 0.01em; | |
background-color: #fefefe; | |
} | |
header { background-color: #080808; } | |
header.fixed { position: fixed; width: 100%; } |
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
class @MeaveCss | |
constructor: () -> | |
@content = '' | |
add: (selector, prop, value) -> | |
@content += selector + "{" + prop + ":" + value + "}" | |
render: () -> | |
@content |
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
FROM centos:6 | |
# Update packages | |
RUN yum update -y && yum upgrade -y | |
# Install packages | |
RUN yum install -y gcc gcc-g++ git | |
# Install RVM | |
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB |
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)
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; } }}' |
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
diamond |