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
<?php | |
$data = str_repeat("a", 1024*1024); | |
fwrite(STDOUT, $data); | |
fwrite(STDERR, $data); | |
exit(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
<!DOCTYPE html> | |
<html$if(lang)$ lang="$lang$"$endif$> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="generator" content="pandoc"> | |
$for(author-meta)$ | |
<meta name="author" content="$author-meta$"> | |
$endfor$ | |
$if(date-meta)$ | |
<meta name="dcterms.date" content="$date-meta$"> |
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
nkf -w %1 > temp1.tex | |
nkf -w %2 > temp2.tex | |
latexdiff -e utf8 temp1.tex temp2.tex >temp3.tex | |
nkf temp3.tex > temp4.tex | |
sed -e "s/\providecommand{.DIFadd}\[1\]{{.protect.color{blue}.uwave{#1}}}/\\providecommand{\\\\DIFadd}[1]{{\\\\protect\\\\color{red}#1}}/" ^ | |
-e "s/\providecommand{.DIFdel}\[1\]{{.protect.color{red}.sout{#1}}}/\\providecommand{\\\\DIFdel}[1]{}/" ^ | |
temp4.tex > temp5.tex | |
nkf -w temp5.tex > diff.tex |
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
update | |
# Add Repository | |
tap phinze/homebrew-cask | |
tap homebrew/versions | |
tap homebrew/binary | |
tap homebrew/dupes | |
tap homebrew/homebrew-php | |
tap homebrew/science | |
tap sanemat/font |
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
rbenv install ほげほげ | |
rbenv global ほげほげ | |
~/.dotfiles/updateEnv.sh |
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
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
func work(num int, ch chan int) { | |
// Do Somthing | |
ch <- num |
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
# yoを送信 | |
function yo() { | |
[[ -n "$1" ]] && youser="$1" || youser='<default_yo_target_user_name>' | |
curl -s \ | |
-d "api_token=<api-token>" \ | |
-d "username=$youser" \ | |
http://api.justyo.co/yo/ | |
} | |
# pushoverで通知を送信 |
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
# npm install execSync --save | |
sh=require('execSync') | |
_.map(entries, (e)-> sh.run "SayKotoeri2 \"#{e.title}\"") |
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
require("babel/polyfill"); | |
function* fizbuzgen() { | |
for(var i = 0;; ++i) { | |
if(i % 15 === 0) { yield "fizzbuzz"; } | |
else if(i % 5 === 0) { yield "buzz"; } | |
else if(i % 3 === 0) { yield "fizz"; } | |
else { yield "" + i; } | |
} | |
} |
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
data Node = Leaf Integer | Branch Node Node | |
depth tree = case tree of | |
Leaf _ -> 1 | |
Branch a b -> 1 + max (depth a) (depth b) | |
depth_tail tree = depth' tree id | |
where | |
depth' (Leaf _) cont = cont 1 | |
depth' (Branch a b) cont = |
OlderNewer