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
clipboard = hs.chooser.new(function (choice) | |
if choice then | |
hs.pasteboard.setContents(choice.content) | |
hs.eventtap.keyStroke({ "cmd" }, "v") | |
end | |
end) | |
local history = {} | |
function addHistoryFromPasteboard() | |
local contentTypes = hs.pasteboard.contentTypes() |
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
if has('nvim') | |
augroup vimrc_term | |
autocmd! | |
autocmd WinEnter term://* nohlsearch | |
autocmd WinEnter term://* startinsert | |
autocmd TermOpen * tnoremap <buffer> <C-h> <C-\><C-n><C-w>h | |
autocmd TermOpen * tnoremap <buffer> <C-j> <C-\><C-n><C-w>j | |
autocmd TermOpen * tnoremap <buffer> <C-k> <C-\><C-n><C-w>k | |
autocmd TermOpen * tnoremap <buffer> <C-l> <C-\><C-n><C-w>l |
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
let g:ale_sign_error = '✖' | |
hi! ALEErrorSign guifg=#DF8C8C ctermfg=167 | |
let g:ale_sign_warning = '⚠' | |
hi! ALEWarningSign guifg=#F2C38F ctermfg=221 |
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
for i in range(65,90) + range(97,122) | |
let c = nr2char(i) | |
exec "map \e".c." <M-".c.">" | |
exec "map! \e".c." <M-".c.">" | |
endfor |
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
;; React supports "refs" as a way for a component to get a | |
;; handle to its children. Classically, refs were string-based. | |
;; Recent versions of React support callback attributes as a | |
;; more elegant variant of accessing DOM notes or components. | |
;; | |
;; This example uses a Form-3 component as per | |
;; https://github.com/Day8/re-frame/wiki/Creating-Reagent-Components | |
;; | |
;; For callback refs, see React's documentation | |
;; https://facebook.github.io/react/docs/more-about-refs.html |
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
// ==UserScript== | |
// @name clean weibo | |
// @namespace http://www.ahonn.me/ | |
// @version 1.0 | |
// @description Tampermonke script for clean all weibo | |
// @author ahonn | |
// @match http://weibo.com/p/* | |
// @grant none | |
// ==/UserScript== |
NewerOlder