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
user_data.sh |
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
onepiece-episode-title: Get an episode title in english, romaji &/or japanese, or print a title according to a format string | |
prerequisites: | |
gnu tools: bash, sed, tr | |
curl | |
pup (https://github.com/ericchiang/pup) | |
xmlstarlet (unesc) | |
onepiece-episode-chapters: List the manga chapters adapted by an episode | |
prerequisites: | |
gnu tools: bash, sed, tr | |
curl |
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
map h previousTab | |
map l nextTab | |
map <C-d> scrollPageDown | |
map <C-u> scrollPageUp | |
map b :buffer<Space> | |
map sk<Space> :bookmarks<Space> | |
map skk :bookmarks /Bookmarks bar/ | |
imap <C-p> backwardLine | |
imap <C-n> forwardLine |
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
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
// | |
// Permission is hereby granted, free of charge, to any person |
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
command! closetabstoleft | |
\ -description "Close all tabs to the left of the current tab" | |
\ -js | |
\ var firstTab = tabs.getTab(0); | |
\ var numToClose = tabs.getTab().dactylOrdinal - 1; | |
\ tabs.remove(firstTab, numToClose); | |
command! closetabstoright | |
\ -description "Close all tabs to the right of the current tab" | |
\ -js | |
\ tabIndex = tabs.getTab().dactylOrdinal - 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
;; Code taken from Emacs 25 source. GPL3. | |
;; http://repo.or.cz/emacs.git | |
(global-set-key (kbd "C-h o") 'describe-symbol) | |
;;;###autoload | |
(defun describe-symbol (symbol &optional buffer frame) | |
"Display the full documentation of SYMBOL. | |
Will show the info of SYMBOL as a function, variable, and/or face." | |
(interactive |
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
(defun kbd+ (keyrep &optional need-vector) | |
(if (vectorp keyrep) keyrep (edmacro-parse-keys keyrep need-vector))) | |
(defun gmap (keyrep defstr) | |
"Vim-style global keybinding. Uses the `global-set-key' binding function." | |
(global-set-key (kbd+ keyrep) (edmacro-parse-keys defstr t))) | |
(defun fmap (keybind-fn keyrep defstr) | |
"Vim-style keybinding using the key binding function KEYBIND-FN." | |
(call keybind-fn (kbd+ keyrep) (edmacro-parse-keys defstr t))) |
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
js <<EOF | |
closeAllToRight = function () { | |
var current = tabs.getTab(); | |
var currentIx = tabs.index(current); | |
var nexttab = current.nextElementSibling; | |
var N = tabs.count; | |
var numToClose = N - (currentIx + 1); | |
tabs.remove(nexttab, numToClose); | |
} |
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(){var p=document.createElement("p");p.innerHTML="<strong>Loading…</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://gist.github.com/ttscoff/6109434/raw/Bullseye.js?x="+(Math.random());})(); |
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(){var p=document.createElement("p");p.innerHTML="<strong>Loading…</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://gist.github.com/ttscoff/5834741/raw/grablinks.js?x="+(Math.random());})(); |