This file contains hidden or 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
curl -v http://qiita.com/jamejammy/items/671a14ae2834c045fe27 2>&1 1>/dev/null | awk '{if($2~"HTTP") print}' |
This file contains hidden or 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
mkdir ~/.fonts && cd ~/.fonts | |
wget http://users.teilar.gr/~g1951d/Symbola.zip | |
unzip Symbola.zip && rm Symbola.zip |
This file contains hidden or 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 クリスマスまであと$(echo "`date -d$'12/25' +%j`-`date +%j`" |bc | tr -d '\n')日 |
This file contains hidden or 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
# Attribute codes: | |
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed | |
# Text color codes: | |
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white | |
# Background color codes: | |
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white |
This file contains hidden or 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
#!/bin/bash | |
cat /etc/hoge_schedule | while read line | |
do | |
a=($line) | |
rest_days=$(echo "`date -d${a[1]} +%j`-`date +%j`" |bc | tr -d '\n') | |
[ $rest_days -lt 0 ] && rest_days=$(expr $rest_days + 365) | |
if [ $rest_days -lt 100 ]; then | |
if [ $rest_days -gt 20 ]; then | |
echo ""${a[0]}"まであと"$rest_days"日" |
This file contains hidden or 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
#!/usr/bin/python | |
# coding: utf-8 | |
import sys | |
argvs = sys.argv | |
f = open(argvs[1]) | |
line = f.readline() |
This file contains hidden or 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
wget -q -O - https://twitter.com/accountname/media | egrep "https\S\/\/\S+jpg\"" | awk -F"\"" '{print $2}' | xargs wget -i |
This file contains hidden or 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
Lorenz system in javascript with three.js | |
練習がてらローレンツアトラクタをthree.jsを用いて書いてみた |
This file contains hidden or 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
ruleは | |
1,2,...,16 | |
16, | |
32, | |
: | |
, ... ...,255 | |
と並んでます。 |
This file contains hidden or 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
.clear { clear:both; } | |
* { | |
margin:0;padding:0;font-size:1em;line-height:1.5;font-weight:normal;color:#333; | |
} | |
html, body {background:#3b3b3b;} | |
a { text-decoration:underline;color:#40b0eb; } | |
a:hover { text-decoration:none;color:#3384d6; } | |
.inner { | |
width:800px; |