Core interfaces
type Reader interface {
Read(p []byte) (n int, err error)
}
type Writer interface {
Write(p []byte) (n int, err error)
Sponsor on GitHub to get access to this POC
#!/bin/sh | |
apptron app indicator - ./icon.png <<MENU | | |
Timers | |
5 seconds | |
10 seconds | |
30 seconds | |
Say Hello | |
--- | |
Quit | |
MENU |
function dateTimeFormat(timestamp, locale, str, ...opts) { | |
const d = new Date(timestamp); | |
return str.replace(/{(\d+)}/g, function(match, number) { | |
return typeof opts[number] != 'undefined' | |
? new Intl.DateTimeFormat(locale, opts[number]).format(d) | |
: match; | |
}); | |
} | |
console.log(dateTimeFormat("2021-11-19T19:19:36.598071-06:00", "en", "{0} at {1}!", {dateStyle:"short"}, {timeStyle:"long"})) |
// styling module provides a helper for building style | |
// and class attributes for elements. | |
type Styling = string | Object | Style | (() => boolean); | |
type ConditionedStyle = [string, () => boolean]; | |
export function from(...styling: Styling[]): Style { | |
return Style.from(...styling); | |
} |
package cli | |
import ( | |
"bytes" | |
"context" | |
"flag" | |
"fmt" | |
"os" | |
"reflect" | |
"strings" |
// server.go | |
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"strings" | |
"github.com/progrium/qtalk-go/codec" |
// client.go | |
package main | |
import ( | |
"context" | |
"log" | |
"github.com/progrium/qtalk-go/codec" | |
"github.com/progrium/qtalk-go/fn" | |
"github.com/progrium/qtalk-go/talk" |
package main | |
import ( | |
"fmt" | |
"github.com/.../fds" | |
"github.com/.../fds/dict" | |
"github.com/.../fds/list" | |
"github.com/.../fds/tree" | |
) |
arch -x86_64
, for example arch -x86_64 go
arch -x86_64 zsh
then go
or whateverNot all toolchains and libraries properly support M1 arm64 chips just yet. Although