Create the following files in the .vscode folder of your repo
{
"import": ["./cspell-node.config.cjs"]
}| import Database from 'better-sqlite3'; | |
| import { createDatabaseClient } from './proxy.ts'; | |
| // 1) Create an in-memory DB and your table(s). | |
| const db = new Database(':memory:'); | |
| db.exec(` | |
| CREATE TABLE users ( | |
| id TEXT PRIMARY KEY, | |
| data JSON | |
| ); |
This is a pure-Python script which builds on top of difftastics --display json to provide:
side-by-side)it addresses following shortcomings of current (v0.51.1) JSON output:
chunks are unordered (different each time), had to be sorted by rhs.line_number then lhs.line_numberhighlight) for some (probably unknown?) languages, those are mergedaddresses Wilfred/difftastic#45
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Launch all tests 3 browsers", | |
| "request": "launch", | |
| "runtimeArgs": [ | |
| "run-script", | |
| "tests3x" | |
| ], |
This Gist is superseded by https://github.com/Ircama/PT-P300BT
The Brother P-touch Cube PT-P300BT labelling machine is intended to be controlled from the official Brother P-touch Design&Print 2 app for Android and iOS devices, instead of from a computer.
| # custom sqlalchemy column type for a pendulum datetime - https://pendulum.eustace.io/ | |
| from datetime import datetime | |
| import pendulum | |
| import sqlalchemy as sa | |
| from sqlalchemy.types import TypeDecorator as _TypeDecorator | |
| from sqlalchemy_utils.types.scalar_coercible import ScalarCoercible as _ScalarCoercible |
| #!/bin/sh | |
| DEFER= | |
| defer() { | |
| DEFER="$*; ${DEFER}" | |
| trap "{ $DEFER }" EXIT | |
| } |
| <?xml version='1.0'?> | |
| <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
| <fontconfig> | |
| <alias> | |
| <family>Arial</family> | |
| <prefer> | |
| <family>Arial</family> | |
| <family>Liberation Sans</family> | |
| <family>sans-serif</family> | |
| </prefer> |
| /etc/docker/daemon.json | |
| { | |
| "bip" : "172.70.0.1/16", | |
| "fixed-cidr" : "172.70.16.0/20", | |
| "log-level" : "info", | |
| "default-address-pools" : [ | |
| {"base" : "172.80.0.0/16", "size" : 24 }, | |
| {"base" : "172.90.0.0/16", "size" : 24 } | |
| ] |
| #compdef swaymsg | |
| typeset -A opt_args | |
| __swaymsg() { | |
| # Reuse socket path from command line if present | |
| swaymsg ${(kv)opt_args[(I)-s|--socket]} "$@" 2>/dev/null | |
| } | |
| # _sway | |
| # sway ipc {{{ |