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
/* | |
* Copyright 1993-2018 NVIDIA Corporation. All rights reserved. | |
* | |
* NOTICE TO LICENSEE: | |
* | |
* This source code and/or documentation ("Licensed Deliverables") are | |
* subject to NVIDIA intellectual property rights under U.S. and | |
* international Copyright laws. | |
* | |
* These Licensed Deliverables contained herein is PROPRIETARY and |
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
```lua | |
-- this template is borrowed from nvim-lspconfig | |
local on_windows = vim.loop.os_uname().version:match("Windows") | |
local function join_paths(...) | |
local path_sep = on_windows and "\\" or "/" | |
local result = table.concat({ ... }, path_sep) | |
return result | |
end |
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
-- this template is borrowed from nvim-lspconfig | |
local on_windows = vim.loop.os_uname().version:match("Windows") | |
local function join_paths(...) | |
local path_sep = on_windows and "\\" or "/" | |
local result = table.concat({ ... }, path_sep) | |
return result | |
end | |
vim.cmd([[set runtimepath=$VIMRUNTIME]]) |
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
// ============================================================================= | |
// | |
// Waybar configuration | |
// | |
// Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration | |
// | |
// ============================================================================= | |
{ | |
// ------------------------------------------------------------------------- |
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/sh | |
#|-*- mode:lisp -*-|# | |
#| | |
exec ros -Q -- $0 "$@" | |
|# | |
(progn ;;init forms | |
(ros:ensure-asdf) | |
#+quicklisp(ql:quickload '(swank com.google.base asdf uiop cffi unix-opts) :silent t)) | |
(in-package :cl) |
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
-- this template is borrowed from nvim-lspconfig | |
local on_windows = vim.loop.os_uname().version:match("Windows") | |
local function join_paths(...) | |
local path_sep = on_windows and "\\" or "/" | |
local result = table.concat({ ... }, path_sep) | |
return result | |
end | |
vim.cmd([[set runtimepath=$VIMRUNTIME]]) |
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
# vim: ft=cfg | |
# | |
# This is the configuration file of "rifle", ranger's file executor/opener. | |
# Each line consists of conditions and a command. For each line the conditions | |
# are checked and if they are met, the respective command is run. | |
# | |
# Syntax: | |
# <condition1> , <condition2> , ... = command | |
# | |
# The command can contain these environment variables: |
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 nimpy, ./macros # the macros in the other GIST | |
assert(pyImport("sys").version_info.major.to(int) >= 3) | |
let | |
lark = pyImport("lark") | |
idt = pyImport("lark.indenter") | |
tree_grammar = """ | |
?start: _NL* tree | |
tree: NAME _NL [_INDENT tree+ _DEDENT] |
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 nimpy, std/macros, ast_pattern_matching, sequtils, unittest, strutils | |
let py = pyBuiltinsModule() | |
macro pyInjectMethods*(obj, memFuncs: untyped): untyped = | |
obj.expectKind nnkIdent | |
memFuncs.expectKind nnkStmtList | |
var stmts = newStmtList() | |
for mem_func in memFuncs.children: | |
memFunc.matchAst: |
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
{"configversion":"2.0","nmaps":{"/":"fillcmdline find","?":"fillcmdline find -?","N":"findnext -1",",<Space>":"nohlsearch","n":"findnext 1","j":"scrollpage 0.5","s":"scrollpage 0.5","d":"scrollpage -0.5","x":"tabclose","a":"hint -b","m":"bmark","h":"tabprev","l":"tabnext",";x":"hint -F e => { const pos = tri.dom.getAbsoluteCentre(e); tri.excmds.exclaim_quiet(\"xdotool mousemove --sync \" + window.devicePixelRatio * pos.x + \" \" + window.devicePixelRatio * pos.y + \"; xdotool click 1\")}",";X":"hint -F e => { const pos = tri.dom.getAbsoluteCentre(e); tri.excmds.exclaim_quiet(\"xdotool mousemove --sync \" + window.devicePixelRatio * pos.x + \" \" + window.devicePixelRatio * pos.y + \"; xdotool keydown ctrl+shift; xdotool click 1; xdotool keyup ctrl+shift\")}","<A-p>":"pin","<A-m>":"mute toggle","<F1>":"help","o":"fillcmdline open","O":"current_url open","w":"fillcmdline winopen","W":"current_url winopen","t":"fillcmdline tabopen","]]":"followpage next","[[":"followpage prev","[c":"urlincrement -1","]c":"urlinc |
NewerOlder