Install Haskell version 8.2.2: https://www.haskell.org/platform/prior.html
Elm will NOT build in 8.4.2.
Do once, after installing Haskell:
cabal update
Download the compiler source:
| """ | |
| An LM with a REPL | |
| Gives an LLM a Python REPL: the model can write ```repl``` code blocks, | |
| which get executed, with stdout/stderr fed back into the conversation. | |
| Requires a running mlx_lm.server: | |
| mlx_lm.server | |
| """ |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Hello World!</title> | |
| </head> | |
| <body> | |
| <webview id="foo" src="https://googlechrome.github.io/samples/web-bluetooth/device-info.html?allDevices=true" style="display:inline-flex; width:640px; height:480px"></webview> | |
| <script> | |
| // You can also require other files to run in this process |
Install Haskell version 8.2.2: https://www.haskell.org/platform/prior.html
Elm will NOT build in 8.4.2.
Do once, after installing Haskell:
cabal update
Download the compiler source:
This document describes how to build a statically linked binary of Elm 0.19.0 for Linux x64 using docker. The binary is built using Alpine Linux in order to easily link it statically to musl libc. This is how the official Elm 0.19.0 Linux binary was built.
Elm is currently distributed using npm. For Linux x64 (but this applies to any architecture), this requires to have a single x64 binary that works on all Linux x64 distributions. This is considerably easier to achieve by building a statically linked binary that will only depend on the Linux kernel ABI and System Call Interface but not on userpace libraries (see here for a compatibility survey of a dynamically built executable).
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
Set up Kubernetes on 3 Debian Jessie virtual machines: One master. Two nodes. Additionally do this without any "magic" so that what is required to be running to make everything work is plain and obvious.
We will be using flannel for the inter-machine networking layer. Mainly because it is useful and it seems to be pretty popular.
Testing React components seems simple at first. Then you need to test something that isn't a pure interaction and things seem to break down. These 4 patterns should help you write readable, flexible tests for the type of component you are testing.
I recommend doing all setup in the most functional way possible. If you can avoid it, don't set variables in a
beforeEach. This will help ensure tests are isolated and make things a bit easier to reason about. I use a pattern
that gives great defaults for each test example but allows every example to override props when needed:
| //EXAMPLE evolution.scala | |
| import java.io.{File, FilenameFilter} | |
| import com.datastax.driver.core.Session | |
| import org.apache.commons.io.filefilter.SuffixFileFilter | |
| import org.joda.time.{DateTime, DateTimeZone} | |
| import play.api.Play.current | |
| import play.api.{Logger, Play} |
Couldn't find the text of this for a while...