This file contains 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
#!/bin/env bash | |
# Makes `waydroid show-full-ui` integrate nicely with KDE by disabling KDE gestures and | |
# reacting to screen rotation. Not tested with multi_windows. | |
# | |
# Run this script when signed into a wayland session, and not as root (don't use sudo). | |
# Re-run every time you change resolution or scaling. | |
# | |
# The Lineage OS boot animation will no longer be centered as a result of this script. | |
# |
This file contains 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
const invoicePaymentStatusMachine = Machine({ | |
id: 'invoice_payment_status', | |
initial: 'open', | |
states: { | |
open: { | |
on: { | |
PAY: 'paid', | |
CANCEL: 'cancelled', | |
UNCOLLECTIBLE: 'uncollectible' | |
} |
This file contains 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
using System.Linq; | |
using Nustache.Core; | |
static ILookup<string, string> GetMetadata(string templateContent) { | |
// All metadata are written as {{! key: value }}. {{! ... }} is a comment in Mustache. | |
// This function uses the possibility to alter start and end delimiters to scan for {{! }} | |
// instead of {{ }}. With {{! as start delimiter, {{!! becomes a comment. I don't think | |
// you need comments in this case, but I think this is a neat way to include metadata in | |
// the templates. | |
return new Scanner("{{!", "}}") |
This file contains 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 Rx from "rx" | |
import Printer from "zuzel-printer" | |
import mysql from "mysql" | |
main() | |
function main () { | |
let printer = new Printer("labels") | |
let db = mysql.createConnection({ | |
host : "abc", |