Described here: https://learn.getgrav.org/cookbook/twig-recipes#displaying-a-translated-month
put this file into user/languages
of your site (create if it doesn't exist).
enables names of dates translated to german by appending |t
.
example:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/mx" | |
xmlns:flexui="flexunit.flexui.*" | |
xmlns:adobe="http://www.adobe.com/2009/flexUnitUIRunner" | |
minWidth="955" minHeight="600" | |
creationComplete="onCreationComplete()"> | |
<fx:Script> | |
<![CDATA[ | |
import org.flexunit.listeners.UIListener; |
# http://wireless.kernel.org/en/users/Drivers/b43 | |
sudo modprobe -r b43 bcma | |
sudo modprobe -r brcmsmac bcma | |
sudo modprobe -r wl | |
sudo apt-get purge bcmwl-kernel-source | |
sudo apt-get update | |
sudo apt-get install firmware-b43-installer | |
#without connection: those drivers are on the install medium (at least for ubuntu 14) one might need to add it to the list of repositories |
var C_TYPE = 'Type', | |
C_TITLE = 'Title', | |
C_ID = 'ID', | |
C_URL = 'URL', | |
C_MIME_TYPE = 'file type', | |
C_ELEMENTS = 'elements in document'; | |
var HEADERS = [C_TYPE, C_TITLE, C_ID, C_URL, C_MIME_TYPE, C_ELEMENTS]; | |
function onOpen(){ |
Described here: https://learn.getgrav.org/cookbook/twig-recipes#displaying-a-translated-month
put this file into user/languages
of your site (create if it doesn't exist).
enables names of dates translated to german by appending |t
.
example:
type Neighbors = {neighbors: number}; | |
type State = Neighbors & {alive: boolean}; | |
function deadCell({neighbors}: Neighbors): State { | |
return {alive: false, neighbors}; | |
} | |
function livingCell({neighbors}: Neighbors): State { | |
return {alive: true, neighbors}; | |
} |
/logs |
// requires lodash being present as _, e.g. in the dev console on https://lodash.com/docs | |
// random | |
var result = []; for (i=0;i<50;i++) {let a = `${_.sample.call(null, _.range(2, 21))} * ${_.sample.call(null, _.range(2, 16))}`; result.push(`${a} = ${eval(a)}`);} console.log(result.join('\n')) | |
// all ordered | |
var result = []; for (i=1;i<21;i++) { for (j=1;j<11;j++) { let a = `${i} * ${j}`; result.push(`${a} = ${eval(a)}`);}} console.log(result.join('\n')) |
# With my local setup in Manjaro I'm using https://podman.io/ as a rootless docker replacement: | |
# https://podman.io/getting-started/installation#arch-linux--manjaro-linux | |
# To be able to still run the real docker when required, but use podman by default I added this link: | |
# /usr/local/bin/docker -> /usr/bin/podman | |
# I wanted to have an easy way to switch to real docker and back so I created the following aliases: | |
# <name>su switches on <name>, un<name> switches off <name> | |
# since the tools all require docker daemon to run and calling 'sudo <name>', | |
# but most scripts assume it works wihtout sudo | |
# docker |
// Source: https://gist.github.com/karfau/b6d0927628f6662ca6d892153562522f | |
// 1. copy this file to your root directory alongside ormconfig.env | |
// in your package.json scripts/mocha.opts, etc add | |
// --reqister ./ormconfig.register.js | |
// or | |
// -r ./ormconfig.register.js | |
const {config} = require('dotenv'); | |
const path = require('path'); | |
config({path: path.join(__dirname, 'ormconfig.env')}); |