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
homebase:dht mb$ cd bin | |
homebase:bin mb$ make all | |
All done. | |
dune build client_server.exe | |
Entering directory '/Users/mb/ocaml/dht' | |
../scripts/peers_up.sh | |
Entering directory '/Users/mb/ocaml/dht' | |
Entering directory '/Users/mb/ocaml/dht' | |
Entering directory '/Users/mb/ocaml/dht' | |
Entering directory '/Users/mb/ocaml/dht' |
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
homebase:bin mb$ make test | |
All done. | |
dune build client_server.exe | |
Entering directory '/Users/mb/ocaml/dht' | |
ocamlopt bin/client_server.exe | |
ld: warning: directory not found for option '-L/opt/local/lib' | |
../scripts/peers_up.sh | |
Entering directory '/Users/mb/ocaml/dht' | |
Entering directory '/Users/mb/ocaml/dht' | |
Entering directory '/Users/mb/ocaml/dht' |
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
homebase:bin mb$ make perform_test | |
All done. | |
dune build client_server.exe | |
Entering directory '/Users/mb/ocaml/dht' | |
../scripts/peers_up.sh | |
Entering directory '/Users/mb/ocaml/dht' | |
Entering directory '/Users/mb/ocaml/dht' | |
Entering directory '/Users/mb/ocaml/dht' | |
Entering directory '/Users/mb/ocaml/dht' | |
Entering directory '/Users/mb/ocaml/dht' |
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
homebase:bin mb$ ifconfig | |
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 | |
options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP> | |
inet 127.0.0.1 netmask 0xff000000 | |
inet6 ::1 prefixlen 128 | |
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 | |
nd6 options=201<PERFORMNUD,DAD> | |
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 | |
stf0: flags=0<> mtu 1280 | |
EHC29: flags=0<> mtu 0 |
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
homebase:dht mb$ make repl | |
opam config exec -- dune utop | |
ocamlc src/.dht.objs/dht__Chord.{cmi,cmo,cmt} | |
File "src/chord.ml", line 1, characters 0-12: | |
Warning 33: unused open Delimcc. | |
ocamlc src/.dht.objs/dht__Isomorphic.{cmi,cmo,cmt} | |
File "src/isomorphic.ml", line 52, characters 32-91: | |
Warning 8: this pattern-matching is not exhaustive. | |
Here is an example of a case that is not matched: | |
(`Assoc (("random", (`Bool _|`Null|`Assoc _|`List _|`Float _|`Int _))::_)| |
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 Transaction = struct | |
type t = tx_signed | |
module KEY = struct | |
type t = tx_signed | |
let compare a b = String.compare a.data.sender b.data.sender | |
end | |
(* TODO move implementation here *) |
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
homebase:mainnet mb$ make lock | |
opam lock ./development.opam ./mainnet.opam | |
Opam plugin "lock" is not installed. Install it on the current switch? [Y/n] Y | |
The following actions will be performed: | |
- install ocamlgraph 1.8.8 [required by dose3] | |
- install re 1.7.3 [required by dose3] | |
- install opam-file-format 2.0.0 [required by opam-format] | |
- install cppo 1.6.5 [required by dose3] | |
- install opam-core 2.0.3 [required by opam-format] | |
- install extlib 1.7.6 [required by cudf, dose3] |
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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatefulWidget { | |
@override | |
_LoginDemoState createState() => _LoginDemoState(); | |
} |
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
import 'package:flutter/material.dart'; | |
/// Globals | |
Key selectedNode = UniqueKey(); | |
Set<Key> selectedSubnodes = Set(); | |
List<Node> nodes = [ | |
Node('A', [ | |
Node('A1'), | |
Node('A2', [ | |
Node('A21'), |
OlderNewer