Skip to content

Instantly share code, notes, and snippets.

@dpavsrtrl
dpavsrtrl / structtypeeq.pony
Created May 24, 2019 16:58
structural type equality
trait Ate
fun food(): String val => "Something"
interface Named
fun name(): String val => "Somebody"
type NamedEater is (Ate & Named)
class Charlie is (Ate & Named)
new create() =>
@dpavsrtrl
dpavsrtrl / delayedlogger.pony
Last active May 23, 2019 15:20
pony timers
use "time"
actor Logger
var _env: Env
let timers: Timers = Timers
new create(env: Env) =>
_env = env
be log(m: String, d: U64) =>
timers(
Timer(
@dpavsrtrl
dpavsrtrl / erlang vscode log.txt
Created March 18, 2019 15:07
erlang vscode log
starting : erlc
-o ../ebin vscode_lsp_entry.erl
erlc exit code:0
erlc exit code:0
starting : erl
-noshell -pa src -pa ebin -s int -vscode_port 16546 -s vscode_lsp_entry start 16546
Old inliner: threshold=0 functions=[{hex,1}]
Old inliner: threshold=0 functions=[{object_key,2}]
=INFO REPORT==== 18-Mar-2019::11:01:44.397000 ===
configuration ["c:/Users/dpavsrtrl/github/erlang-koans/src/about_guard_clauses.erl"]
using System.Runtime.CompilerServices;
using NLog;
namespace NLogCallerName
{
class Program
{
static void Main(string[] args)
{
var logger = LogManager.GetLogger("My Log");
This file has been truncated, but you can view the full file.
-rw-r--r-- 0/0 1479 1970-01-01 00:00 metadata.yaml
drwxr-xr-x 0/0 0 2017-09-13 03:54 rootfs
drwxr-xr-x 0/0 0 2017-09-13 03:55 rootfs/bin
-rwxr-xr-x 0/0 1037528 2017-05-16 12:49 rootfs/bin/bash
-rwxr-xr-x 0/0 31288 2015-05-20 05:10 rootfs/bin/bunzip2
hrwxr-xr-x 0/0 0 2015-05-20 05:10 rootfs/bin/bzcat link to rootfs/bin/bunzip2
lrwxrwxrwx 0/0 0 2017-09-15 03:53 rootfs/bin/bzcmp -> bzdiff
-rwxr-xr-x 0/0 2140 2015-05-20 05:10 rootfs/bin/bzdiff
lrwxrwxrwx 0/0 0 2017-09-15 03:53 rootfs/bin/bzegrep -> bzgrep
-rwxr-xr-x 0/0 4877 2015-05-20 05:10 rootfs/bin/bzexe
root@phase2Hurdle:~/phase2-hurdle/container_configuration/bot_containers# lxc image list
+--------------------------------+--------------+--------+-------------------------------------------------+--------+-----------+-------------------------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCH | SIZE | UPLOAD DATE |
+--------------------------------+--------------+--------+-------------------------------------------------+--------+-----------+-------------------------------+
| darpa-practice-srn-base-v1-0-0 | e351cd3792ee | no | Ubuntu 14.04 LTS server (20161213) | x86_64 | 1082.67MB | Nov 17, 2017 at 8:44pm (UTC) |
+--------------------------------+--------------+--------+-------------------------------------------------+--------+-----------+-------------------------------+
| dummy-image | 2d8b3108e906 | no | ubuntu xenial x86_64 (default) (20170913_03:49) | x86_64 | 127.46M