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 |
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))))) |
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 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 |
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; |
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 |
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 |
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 |
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 |
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