View gist:3600757
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
start: ack(4, 1) | |
result: 65533 | |
41.62027700 | |
start: goto_ack(4, 1) | |
result: 65533 | |
21.50686800 | |
start: while_ack(4, 1) | |
result: 65533 | |
22.70978300 |
View ack3_3.log
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
Ack(3, 3) | |
= Ack(2, Ack(3, 2)) | |
= Ack(2, Ack(2, Ack(3, 1))) | |
= Ack(2, Ack(2, Ack(2, Ack(3, 0)))) | |
= Ack(2, Ack(2, Ack(2, Ack(2, 1)))) | |
= Ack(2, Ack(2, Ack(2, Ack(1, Ack(2, 0))))) | |
= Ack(2, Ack(2, Ack(2, Ack(1, Ack(1, 1))))) | |
= Ack(2, Ack(2, Ack(2, Ack(1, Ack(0, Ack(1, 0)))))) | |
= Ack(2, Ack(2, Ack(2, Ack(1, Ack(0, Ack(0, 1)))))) | |
= Ack(2, Ack(2, Ack(2, Ack(1, Ack(0, 2))))) |
View setogiwa_match.txt
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
瀬戸際に漂う 神秘のソース | |
このライブラリの果ては まあるく結合してますよ | |
瀬戸際で語らう リリースの形 | |
七つのチケットはブロッカーを出してる | |
仕様ー!どこだー! | |
仕様ー!どこだー! |
View skype.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
#!/bin/sh | |
tmux new-session -d -s skype -n run | |
tmux send-keys -t skype:run "export XMODIFIERS=\"@im=ibus\"" C-m | |
tmux send-keys -t skype:run "export GTK_IM_MODULE=ibus" C-m | |
tmux send-keys -t skype:run "export QT_IM_MODULE=ibus" C-m | |
tmux send-keys -t skype:run "/usr/bin/skype &" C-m |
View kusort.c
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
extern void bitsort_recursive(unsigned int *old_seq, unsigned int *new_seq, size_t size, size_t maxbit); | |
void bitsort_recursive(unsigned int *old_seq, unsigned int *new_seq, size_t size, size_t maxbit) | |
{ | |
int i; | |
size_t l_pos; |
View cpufreqd.conf
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
# this is a comment | |
# see CPUFREQD.CONF(5) manpage for a complete reference | |
# | |
# Note: ondemand/conservative Profiles are disabled because | |
# they are not available on many platforms. | |
[General] | |
pidfile=/var/run/cpufreqd.pid | |
poll_interval=2 | |
verbosity=4 |
View search_symbol.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
#! /bin/bash | |
for i in *.a; | |
do | |
RESULT=`nm $i 2> /dev/null | grep $1 2> /dev/null` | |
if [ -n "$RESULT" ]; then | |
echo $i | |
echo $RESULT | |
echo | |
fi |
View simple_redirect_server.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
#! /usr/bin/env ruby | |
require 'webrick' | |
require 'uri' | |
TARGET_URL = URI.parse "http://tommaso.pavese.me/back_to_work/" | |
redirect_callback = Proc.new do |request, response| | |
response.set_redirect WEBrick::HTTPStatus::TemporaryRedirect, TARGET_URL |
View coveralls_filter_1.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
SimpleCov.formatter = Coveralls::SimpleCov::Formatter | |
SimpleCov.start do | |
# スペックファイルを除外 | |
add_filter "/spec/" | |
end |
View fgh3tex.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
def oh_great(n) | |
if n == 1 | |
"2^n n" | |
else | |
prev = oh_great(n - 1) | |
"2^{#{prev}} {#{prev}}" | |
end | |
end | |
def output(n) |
OlderNewer