Difference between revisions of "User:Jontow"

From WTFwiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 13: Line 13:
  
 
=== Research ===
 
=== Research ===
......
+
 
 +
=== Scratch Space ===
 +
[[JontowTest]]
 +
 
 +
<syntaxhighlight lang="erlang" line>
 +
% -- Note: Part 1 uses ?MATCHSTRING1
 +
%
 +
 
 +
-module(day4par).
 +
-export([tc_solve_part1/0, tc_solve_part2/0,
 +
        prof_solve_part1/0, prof_solve_part2/0,
 +
        solve_part1/0, solve_part2/0,
 +
        worker_run/1, foreman_run/3]).
 +
-define(MATCHSTRING1, "00000").
 +
-define(MATCHSTRING2, "000000").
 +
-define(SEED, "iwrupvqb").
 +
-define(WORKERS, 2).
 +
-define(MBOXDEPTH, 5000).
 +
-define(BACKOFFMS, 250).
 +
 
 +
tc_solve_part1() ->
 +
    timer:tc(fun() -> solve_part1() end).
 +
</syntaxhighlight>

Latest revision as of 13:43, 1 April 2020

Contact Details

  • Name: Jonathan Towne
  • Email: jontow AT hijacked DOT us
  • Profession: UNIX System/Network Administrator; involving Network Security, Development, and other.


TODO

Deployments

Misc Code

Research

Scratch Space

JontowTest

 1 % -- Note: Part 1 uses ?MATCHSTRING1
 2 %
 3 
 4 -module(day4par).
 5 -export([tc_solve_part1/0, tc_solve_part2/0,
 6          prof_solve_part1/0, prof_solve_part2/0,
 7          solve_part1/0, solve_part2/0,
 8          worker_run/1, foreman_run/3]).
 9 -define(MATCHSTRING1, "00000").
10 -define(MATCHSTRING2, "000000").
11 -define(SEED, "iwrupvqb").
12 -define(WORKERS, 2).
13 -define(MBOXDEPTH, 5000).
14 -define(BACKOFFMS, 250).
15 
16 tc_solve_part1() ->
17     timer:tc(fun() -> solve_part1() end).