Skip to content

Instantly share code, notes, and snippets.

@LinArcX
LinArcX / html5TagSyntax.bnf
Created December 13, 2020 16:29 — forked from tkqubo/html5TagSyntax.bnf
EBNF notation for HTML5 tag syntax
tag-open := '<' tag-name ws* attr-list? ws* '>'
tag-empty := '<' tag-name ws* attr-list? ws* '/>'
tag-close := '</' tag-name ws* '>'
attr-list := (ws+ attr)*
attr := attr-empty | attr-unquoted | attr-single-quoted | attr-double-quoted
attr-empty := attr-name
attr-unquoted := attr-name ws* = ws* attr-unquoted-value
↳ ./qt-unified-linux-x64-4.0.0-online.run
[141] Warning: Qt Account settings file [/home/linarcx/.local/share/Qt/qtaccount.ini] does not exist.
[141] Warning: Could not find Qt Account.
[512] Warning: No QtAccount credentials found. Please login via the maintenance tool of the SDK.
[1465] Warning: Network error: [ QNetworkReply::InternalServerError ] "Invalid data."
[1465] Warning: Invalid data.
@LinArcX
LinArcX / trans-cached.sh
Created November 12, 2020 20:13 — forked from fdietze/trans-cached.sh
Cache `trans` translation results in sqlite
#!/usr/bin/env bash
set -Eeuo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/#:~:text=set%20%2Du,is%20often%20highly%20desirable%20behavior.
shopt -s expand_aliases
SOURCE_LANG=$1
TARGET_LANG=$2
TEXT=$3
ENGINE=${4-google}
CACHEFILE="$HOME/.cache/trans_cache.sqlite"
has cargo: 0
has maple: /home/linarcx/VoidConf/home/.config/nvim/plugged/vim-clap/bin/maple
maple info: version 0.1.20 (git v0.20), built for x86_64-unknown-linux-musl by rustc 1.45.0 (5c1f21c3b 2020-07-13).
has +python3: 1
has py dynamic module: 0
Current FileType: vim
Third Party Providers: []
Global Options:
let g:clap#autoload_dir = '/home/linarcx/VoidConf/home/.config/nvim/plugged/vim-clap/autoload'
let g:clap#provider_alias = {'gfiles': 'git_files', 'hist:': 'command_history', 'hist/': 'search_history'}
@LinArcX
LinArcX / orthodoxc++.md
Created August 16, 2020 07:36 — forked from bkaradzic/orthodoxc++.md
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

DEPS=$(echo $1 | cut -d "=" -f 2) # DEPS is a comma-separated list of strings.
1)
IFS="|"
STRING="foo|bar|baz"
set array $STRING
print ${array[0]}
print ${array[1]}
print ${array[2]}
Hi. i'm developing a webkitgtk-based application via nix+lorri+direnv. I've added libressl, opensll, glib-networking packages to shell.nix, but when i build/run the program, i'll get this error:
"TLS/SSL support not available; install glib-networking"
This is my shell.nix: https://github.com/LinArcX/jjn/blob/master/shell.nix
let
pkgs = import <nixpkgs> {};
unstable = import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz) {};
pkgs-2020-03-23 = import (fetchTarball https://github.com/NixOS/nixpkgs/archive/793c1b5c72abbfed2f98add0811a022fc713dbf3.tar.gz) {};
in
pkgs-2020-03-23.clangStdenv.mkDerivation rec {
pname = "wingpanel-disk-usage";
version = "1.0.0";
name = "${pname}${version}";
let
pkgs = import <nixpkgs> {};
unstable = import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz) {};
pkgs-2020-03-23 = import (fetchTarball https://github.com/NixOS/nixpkgs/archive/793c1b5c72abbfed2f98add0811a022fc713dbf3.tar.gz) {};
in
pkgs-2020-03-23.clangStdenv.mkDerivation rec {
pname = "wingpanel-disk-usage";
version = "1.0.0";
name = "${pname}${version}";
{
"coc.preferences.timeout": 1000,
"coc.preferences.noselect": true,
"coc.preferences.formatOnType": false,
"coc.preferences.jumpCommand": "edit",
"coc.preferences.autoTrigger": "always",
"coc.preferences.diagnostic.enable": true,
"coc.preferences.diagnostic.signOffset": 500,
"coc.preferences.triggerAfterInsertEnter": true,
"coc.preferences.acceptSuggestionOnCommitCharacter": true,