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
matches: | |
- trigger: ":rdf " | |
replace: http://www.w3.org/1999/02/22-rdf-syntax-ns# | |
- trigger: ":rdfs" | |
replace: http://www.w3.org/2000/01/rdf-schema# | |
- trigger: ":owl" | |
replace: http://www.w3.org/2002/07/owl# | |
- trigger: ":xsd" | |
replace: http://www.w3.org/2001/XMLSchema# |
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
#Have this script directly into your espanso/user. | |
# You can change and add some triggers too ! | |
# To use it, it's simply the trigger (: or /) before all aliases for the admonition. | |
# For example : :faq or /faq will type the admonition question. | |
filter_title: "Obsidian" | |
matches: | |
#Title | |
- triggers: [":note", ":seealso"] | |
replace: | |
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
javascript:(function() { | |
function copyToClipboard(text) { | |
if (window.clipboardData && window.clipboardData.setData) { | |
/*IE specific code path to prevent textarea being shown while dialog is visible.*/ | |
return clipboardData.setData("Text", text); | |
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) { | |
var textarea = document.createElement("textarea"); | |
textarea.textContent = text; |
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
# ---- Build Stage ---- | |
FROM erlang:22-alpine AS app_builder | |
# Set environment variables for building the application | |
ENV MIX_ENV=prod \ | |
TEST=1 \ | |
LANG=C.UTF-8 | |
# Fetch the latest version of Elixir (once the 1.9 docker image is available you won't have to do this) | |
RUN set -xe \ |
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
public class ArrayBufferWriter : IBufferWriter<byte>, IDisposable | |
{ | |
private byte[] _rentedBuffer; | |
private int _written; | |
private long _committed; | |
private const int MinimumBufferSize = 256; | |
public ArrayBufferWriter(int initialCapacity = MinimumBufferSize) | |
{ |
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
" General | |
syntax enable | |
set nocompatible | |
set noswapfile | |
if executable("rg") | |
set grepprg=rg\ --vimgrep\ --no-heading | |
set grepformat=%f:%l:%c:%m,%f:%l:%m | |
endif | |
autocmd QuickFixCmdPost * copen | |
nnoremap <silent> <C-n> :cn<CR> |
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
"Initialization {{{ | |
set nocompatible | |
let mapleader = '\' | |
" }}} | |
"Loading Vundle Plugins: {{{ | |
filetype on | |
set rtp+=~/.vim/bundle/Vundle.vim | |
set runtimepath+=~/.vim/bundle/ctrlp.vim | |
set runtimepath+=~/.vim/bundle/dart-vim-plugin |
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
# ASCII Unit separator, purpose is to separate subrecords, etc... | |
set __assoc_US \31 | |
# Groks name[key] and sets varname and key variables | |
function assoc._parsename -S -a raw | |
set -l data (string match -r '(.+)\[(.+)\]' $raw) | |
if [ (count $data) -lt 3 ] | |
echo "Invalid assocatiave array specification '$raw'" | |
return 1 | |
else |
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
{config,pkgs,...}: | |
let | |
myVim = pkgs.vim_configurable.customize { | |
name = "vim"; | |
vimrcConfig = { | |
customRC = '' | |
syntax on | |
set nu | |
set foldmethod=syntax |
NewerOlder