https://www.youtube.com/playlist?list=LL
let cnt = 0;
setInterval(() => {
let items = document.querySelectorAll('ytd-playlist-video-renderer button');
console.log('tick');
if (items.length > 0) {
items[cnt++].click();
setTimeout(() => {
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
(use-package lsp-haskell | |
:config | |
(setq lsp-haskell-process-path-hie "haskell-language-server-wrapper") | |
;; xref backends don't compose. This creates one that first consults the | |
;; xref-lsp backend for the latest information from the language server, | |
;; and then falls through to etags for library definitions. | |
(defun my/xref-lsp-etags-backend () 'my/lsp-etags) | |
(cl-defmethod xref-backend-identifier-at-point ((_backend (eql my/lsp-etags))) | |
(xref-backend-identifier-at-point 'xref-lsp)) |
Ref: https://gist.github.com/rnwolf/e09ae9ad6d3ac759767d129d52cab1f1
Key Binding | Description |
---|---|
SPC | < space > |
RET | < return > |
C | < ctrl > |
M | < alt >, M stands for Meta |
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/bash | |
DBG=0 | |
dbg() { | |
[[ $DBG == 1 ]] && (1>&2 echo "[DEBUG] : "$1) | |
} | |
info() { | |
echo "[INFO] : $1" |
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
/** | |
* https://bjoern.hoehrmann.de/utf-8/decoder/dfa/ | |
*/ | |
object Utf8Decoder { | |
private val Utf8Accept: Int = 0 | |
private val Utf8Reject: Int = 1 | |
//@formatter:off | |
private val utf8d : Array[Int] = Array( |
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
#!/usr/bin/env sh | |
# Remove all existing alternatives | |
sudo update-alternatives --remove-all llvm | |
# exit on first error | |
set -e | |
# llvm-4.0 | |
sudo update-alternatives \ |
This approach uses update-alternatives to manage GCC and LLVM/CLANG C/C++ compiler toolchains.
Although tested on Linux Mint 18.3, this approach should work on any Debian based distro or for that matter any Linux distro with update-alternatives
support, provided the packages are installed correctly.
There are 3 files
gcc-alternatives.sh
installs GCC versions 5/6/7 and sets up alternatives forgcc
/g++
/cpp
/gfortran
.llvm-clang-alternatives.sh
installs LLVM and CLANG versions 4/5 and sets up alternatives for various LLVM and CLANG programs includingclang
andclang++
.cc-alternatives.sh
sets up alternatives for thecc
,cxx
, and theld
commands. This script can be used to change systemwide default compiler/linker combination to either GCC or CLANG.
Once these scripts are run you can change the system GCC/CLANG versions by running sudo update-alternatives --config gcc|clang
. To change the default compiler/linker combo used by t
NewerOlder