Build the docker image and start the container.
Start Xvfb
in the container via
$ /etc/init.d/xvfb start
Run Chrome with working WebGL in kiosk mode
// 1. No new syntax for non-TCP functions. | |
// | |
// This approach does do include a shorter syntax for regular functions, so if a classic JS function | |
// is what you want you use the classic long form function expression: | |
a.some(function (x){ | |
if (invalid(x)) | |
return true; | |
console.log(x); | |
}); |
// https://github.com/dominictarr/pull-stream-examples/blob/master/pull.js | |
import Foundation | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
/// Pull stream events | |
enum Event<T> { | |
case next(T) | |
case error(Error) |
log_format bunyan '{' | |
'"name": "nginx/$nginx_version",' | |
'"hostname": "$hostname",' | |
'"pid": "$pid",' | |
'"level": 30,' | |
'"time": "$time_iso8601",' | |
'"v": 0,' | |
'"msg": "access",' | |
'"remoteAddress": "$remote_addr",' |
Build the docker image and start the container.
Start Xvfb
in the container via
$ /etc/init.d/xvfb start
Run Chrome with working WebGL in kiosk mode
xquery version "3.1"; | |
(: forked from https://gist.github.com/apb2006/4eef5889017be4a50685a467b2754d27 | |
: with tests returned in the style of https://so.nwalsh.com/2020/10/09-fib :) | |
declare function local:fib($n as xs:integer, $a as xs:integer, $b as xs:integer){ | |
switch ($n) | |
case 0 return $a | |
case 1 return $b | |
default return local:fib($n - 1, $b, $a + $b) |
declare function local:fib($n as xs:integer, $a as xs:integer, $b as xs:integer){ | |
switch ($n) | |
case 0 return $a | |
case 1 return $b | |
default return local:fib($n - 1, $b, $a + $b) | |
}; | |
declare function local:fib($n as xs:integer){ | |
local:fib($n,0,1) | |
}; |
function tee(asyncIterable) { | |
let source = asyncIterable[Symbol.asyncIterator]() | |
return [[], []].map((buffer, i, buffers) => ({ | |
async next() { | |
if (0 in buffer) return buffer.shift() | |
let item = await source.next() | |
if (!item.done) buffers[1 - i].push(item) |
xquery version "3.1"; | |
declare namespace pkg="http://expath.org/ns/pkg"; | |
array { | |
for $app in xmldb:get-child-collections("/db/apps") | |
let $package-metadata := doc("/db/apps/" || $app || "/expath-pkg.xml") | |
where $package-metadata//pkg:dependency[@package eq "http://exist-db.org/apps/shared"] | |
order by $app | |
return |
xquery version "3.1"; | |
(: @see https://exist-db.org/exist/apps/fundocs/index.html?q=util:system-property | |
: @see https://github.com/eXist-db/exist/blob/develop/exist-core/src/main/resources-filtered/org/exist/system.properties | |
:) | |
let $exist-properties := | |
( | |
"vendor", | |
"vendor-url", | |
"product-name", |