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
defmodule Hjf.ListTrie do | |
import Logger | |
def new() do | |
nil | |
end | |
def insert(tnode, str, value) when is_binary(str) do | |
insert(tnode, String.codepoints(str), value) | |
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
-module(robot). | |
-behaviour(gen_server). | |
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). | |
-export([start/2]). | |
-define(IP, '127.0.0.1'). | |
-define(PORT, 6666). | |
start(ClientNum, SendCount) -> |