Skip to content

Instantly share code, notes, and snippets.

% Write a ring benchmark. Create N processes in a ring. Send a message
% round the ring M times so that a total of N * M messages get sent.
% Time how long this takes for different values of N and M.
% -- Joe Armstrong, "Programming Erlang"
% Copyright (c) 2008-2010 Ivan Fomichev
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, including without limitation the rights
% Copyright (c) 2009 Ivan Fomichev
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, including without limitation the rights
% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
% copies of the Software, and to permit persons to whom the Software is
% furnished to do so, subject to the following conditions:
%
% The above copyright notice and this permission notice shall be included in
% Copyright (c) 2008 Ivan Fomichev
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, including without limitation the rights
% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
% copies of the Software, and to permit persons to whom the Software is
% furnished to do so, subject to the following conditions:
%
% The above copyright notice and this permission notice shall be included in
% Copyright (c) 2008 Ivan Fomichev
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, including without limitation the rights
% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
% copies of the Software, and to permit persons to whom the Software is
% furnished to do so, subject to the following conditions:
%
% The above copyright notice and this permission notice shall be included in
<?php
ini_set('session.gc_probability', 0);
ini_set('session.cookie_domain', '.plantarium.ru');
session_set_cookie_params(pow(2, 31) - 1, '/', '.plantarium.ru');
define('COOKIED_SESSION_COOKIE_NAME', 'cookied_session');
define('COOKIED_SESSION_KEY',
pack('H*', '8c355bad1cfb778eacf3627511c5a345d6c2705739dff770f844893f2e05cae3'));

3c/34 (p102)

x = 26, y = 574, rule = B3/S23
13bo$12b2o$12bobo2$2bo$b3o$2obo$3o$3o$b2o11$7b3o$7bo2bo$7bo$7bo15bo$8b
obo11b3o$21b2obo$21b3o$22b2o19$2bo$b3o$bob2o$2b3o$2b3o$2b2o11$7b3o$6bo
2bo$9bo$9bo13bo$6bobo13b3o$22bob2o$23b3o$23b2o19$2bo$b3o$2obo$3o$3o$b
2o11$7b3o$7bo2bo$7bo$7bo15bo$8bobo11b3o$21b2obo$21b3o$22b2o19$2bo$b3o$
bob2o$2b3o$2b3o$2b2o11$7b3o$6bo2bo$9bo$9bo13bo$6bobo13b3o$22bob2o$23b
3o$23b2o19$2bo$b3o$2obo$3o$3o$b2o11$7b3o$7bo2bo$7bo$7bo15bo$8bobo11b3o

p74 Herschel loop

x = 113, y = 93, rule = B3/S23
36bo$34b3o11bo$33bo14b3o$33b2o16bo14bo$50b2o12b3o$10bo52bo$10b3o50b2o$
13bo25bo4b3o$3b2o7b2o24b2o5b2o$4bo32b2o5b2o16b2o$4bobo31bobo3bobo15b2o
$5b2o32b2o4b4o$11b2o27bo3bo2b2o$10bo2bo30bob2o$10bo2bo30b3o$10bo$11bo
3b2o41bobo$12bo3bo29b2o9bo2bo$bo11b3o9b2o20bo8b2o3bo$obo22bo19bo15bo2b
2o2b2ob2o$bo14b2o8b3o16b2o17bobo2bobo$16bo11bo20b2o5b3o2bo5b2o3bo7bo$
17b3o30bo9b2o6bob2o6b3o11bo$19bo27b3o7b3o5bo2bobo6bo14b3o$47bo9b3o4bob
obobo6b2o16bo14bo$3b2o60b2ob2o24b2o12b3o$2bobo102bo$2bo104b2o$b2o96bo$
@codeholic
codeholic / lab.sql
Last active December 24, 2015 20:09
CREATE TABLE pattern (
pId INTEGER PRIMARY KEY AUTOINCREMENT,
rle TEXT UNIQUE,
sizeX INTEGER,
sizeY INTEGER,
start TEXT,
sx INTEGER,
sy INTEGER,
nrResults INTEGER
);
x = 67, y = 71, rule = B3/S23
59bo$57b2o$58b2o17$40bo$24bo7b2o4b2o$24b3o5b2o5b2o$27bo$26b2o4$38b2o$
37bobo$37bo$35b3o$34bo$35b3o$37bo$37bobo$20b2o16b2o$19bobo$21bo12$46bo
$45b2o$45bobo3$b2o$obo$2bo12$65bo$64b2o$64bobo!