Specific purpose of this build is for running X-Plane flight simulator. The machine is extremely capable, and after building it and using it for two days, it's likely to be used for much more.
This file contains hidden or 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 | |
dom, jsffi, jsconsole, macros, strutils, | |
nes | |
class Ticker: | |
tickerTempl = html_templ: | |
d(data={"key1": "value1", "key2": "value2"}): | |
h1: "Hello, World!" | |
h2: "It is ${new Date().toLocaleTimeString()}." |
This file contains hidden or 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
package main | |
import ( | |
"machine" | |
"time" | |
) | |
func main() { | |
machine.InitLEDMatrix() |
This file contains hidden or 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
## This demo shows how you can develop your own stateful components with Karax. | |
include karax / prelude, json | |
import sugar, asyncdispatch, karax / [kajax] | |
type | |
Song = ref object of VComponent | |
uuid: string | |
timestamp: int64 | |
updated: int64 | |
slug: kstring |
This file contains hidden or 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
## This demo shows how you can develop your own stateful components with Karax. | |
include karax / prelude | |
import karax / kajax | |
type | |
Song = ref object of VComponent | |
title: kstring | |
artist: kstring | |
rating: int | |
opinion: kstring |
This file contains hidden or 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
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: fluentd | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRole | |
metadata: |
This file contains hidden or 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
cat .bashrc-original | |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
Install WSL : https://docs.microsoft.com/en-us/windows/wsl/install-win10
Install VcXsrv : https://sourceforge.net/projects/vcxsrv/
Sweet icon/launcher trick source : https://blog.ropnop.com/configuring-a-pretty-and-usable-terminal-emulator-for-wsl/
Install Visual Studio Code : https://code.visualstudio.com/docs/setup/linux
This file contains hidden or 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
# /etc/systemd/system/gaweb.service | |
[Unit] | |
Description=gopheracademy website | |
[Service] | |
PIDFile=/tmp/gaweb.pid-3001 | |
User=gaweb | |
Group=gaweb | |
Environment=GO_ENV=production | |
Environment=POSTGRES_PASSWORD=SomePassWord |
This file contains hidden or 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
package log | |
type channelLogger struct { | |
subscribers []chan map[string]interface{} | |
} | |
// NewChannelLogger returns a Logger that sends log messages to subscribers | |
// as a map[string]interface{} | |
func NewChannelLogger() Logger { | |
cl := &channelLogger{ |