This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
I turned this gist into a "real" repository. It is here: http://github.com/pete/cats . | |
Here, placed side-by-side for comparison, are GNU's implementation of | |
cat, Plan 9's implementation, Busybox's implementation, and NetBSD's | |
implementation, Seventh Edition Unix (1979), and 4.3BSD. | |
For good measure (and because I suppose I am now committed to collecting | |
cats) also included are Second Edition Unix (in assembly) and Inferno's | |
implementation (in Limbo) for good measure. |
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; } }}' |
#!/bin/bash | |
# source: http://www.haskell.org/pipermail/haskell-cafe/2011-March/090170.html | |
sudo rm -rf /Library/Frameworks/GHC.framework | |
sudo rm -rf /Library/Frameworks/HaskellPlatform.framework | |
sudo rm -rf /Library/Haskell | |
rm -rf ~/.cabal | |
rm -rf ~/.ghc | |
rm -rf ~/Library/Haskell |
Public Function GenderEstimate(ByVal strMK As String, Optional strMF As String = "") As String | |
GenderEstimate = "" | |
strMK = Replace(Replace(Replace(strMK, " ", ""), " ", ""), "「", "") | |
strMF = Replace(Replace(StrConv(strMF, vbHiragana), " ", ""), " ", "") | |
'デバッグ用。こいつをブレークポイントに持ってきて挙動を確認する | |
'If strMK Like "理世" Then | |
' Debug.Print strMK | |
'End If |
xv6を学ぶ上での準備
起動処理を読む(main.c の main() が呼ばれるまで)
main() からmpmain()が呼ばれるまで
全体的に簡略化し、必要と思われる部分を抜粋しました。
Not running
アプリは起動されていないか、実行されていたけれどもシステムによって終了されています。
Inactive
var request = require('request'); | |
var unzip = require('unzip'); | |
var csv2 = require('csv2'); | |
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip') | |
.pipe(unzip.Parse()) | |
.on('entry', function (entry) { | |
entry.pipe(csv2()).on('data', console.log); | |
}) | |
; |
## 三角形 | |
## http://rubyfiddle.com/riddles/6bad3 | |
a = [2, 3, 4, 5, 10] | |
ans = 0 | |
a.combination(3){|v,j,k| | |
if k < (v+j) | |
if ans < (v+j+k) |