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
$ git clone git://github.com/aycabta/wakwakphone.git | |
$ cd wakwakphone |
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
$ ruby ./voip-setup.cgi |
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
"sip: 05011111111@ss01.lmc.xephion.ne.jp" | |
"server address: 61.125.11.182" | |
"user ID: 0123456789ABCDEFABCDEF0123456789" | |
"password: FEDCBA9876543210FEDCBA9876543210" |
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 <limits.h> | |
#include <gmp.h> | |
#define NUM32BIT 4294967296L | |
int main(void) | |
{ | |
mpz_t mpz_i; | |
mpz_t step; | |
mpz_t 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
#include <gmp.h> | |
int main(void) | |
{ | |
mpz_t result; | |
mpz_init(result); | |
mpz_ui_pow_ui(result, 2L, 65536L); | |
mpz_sub_ui(result, result, 3L); |
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
factor = 65536 | |
cy_pos = 0 | |
cy_interval_list = Array.new | |
next_cy_interval_list = Array.new | |
cy_interval_count = 0 | |
digit = 1 | |
num_of_digit = 1 |
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
num = 1 | |
1024.times do | |
num *= 2 | |
p "oh...." if num.to_s.include? "0000" | |
end | |
# "oh...." is printed 11 times. |
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
puts "<table border=\"0\" width=\"700\" align=\"center\">\n" | |
puts " <tr bgcolor=\"#000000\">\n" | |
puts " <th></th>\n" | |
puts " <th></th>\n" | |
puts " <th></th>\n" | |
puts " <th></th>\n" | |
puts " <th></th>\n" | |
puts " </tr>\n" | |
items = Array.new |
OlderNewer