;; main -> {:main [{:des "..." :rules [rule1 rule2 ...]}]}
;; manipulator -> {:des "..." :rules [rule1 rule2 ...]}
;; manipulator's rules -> [rule1 rule2 ...]
{:main [{:des "a to 1, b to 2, c to insert 1 2 3"
:rules [[:a :1] [:b :2] [:c [:1 :2 :3]]]}]}
{:main [{:des "simultaneous j l press to F19" :rules [[[:j :l] :f19]]}]}
;; rule [[:j :l] :f19]
;; <from> <to>
This file contains hidden or 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
| // Link to the tutorial: https://yagisanatode.com/2021/05/16/how-to-find-and-replace-text-in-a-google-doc-with-a-link-or-a-list-of-links-with-google-apps-script/ | |
| /** | |
| * Find an replace text with a single link where there is no | |
| * other text in the paragraph. | |
| */ | |
| function singleLink() { | |
| // ## Inputs ## | |
| let text = "My URL"; | |
| let url = "https://yagisanatode.com/"; |
This file contains hidden or 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
| function receiveMessage(a) { | |
| if (!document.getElementById(Gumroad.activeIframeId)) return; | |
| if (document.getElementById(Gumroad.activeIframeId).getAttribute("src").indexOf(a.origin) != "0") return; | |
| var b = a.data.split(" ")[0]; | |
| b == "close" && Gumroad.close() | |
| } | |
| var Gumroad = Gumroad || { | |
| urlBlackList: ["/signup", "/login", "/logout", "/admin", "/settings", "/library", "/filtered_customer_count", "/customers", "/customers_switch_product", "/purchases", "/users", "/demo", "/products", "/dashboard", "/analytics", "/balance", "/confirm", "/crossdomain", "/api", "/developers", "/ping", "/webhooks", "/revenue_share", "/jobs", "/team", "/press", "/terms", "/privacy", "/blog-posts", "/faq", "/about", "/about", "/how-it-works", "/overlay", "/embed", "/modal", "/button", "/next-steps", "/charge", "/charge_data", "/CHARGE", "/examplify", "/deck", "/guide"], | |
| init: function () { | |
| if (navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match |
Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.
- Sublime text 2 or 3 installed in your system within
Applicationsfolder
Setup
This file contains hidden or 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
| SELECTIVE PRINTING OF CERTAIN LINES: | |
| # print first 10 lines of file (emulates behavior of "head") | |
| sed 10q | |
| # print first line of file (emulates "head -1") | |
| sed q | |
| # print the last 10 lines of a file (emulates "tail") | |
| sed -e :a -e '$q;N;11,$D;ba' |
This file contains hidden or 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
| a='Hello' | |
| b='World' | |
| c="${a} ${b}" | |
| echo "${c}" | |
| #> Hello World | |
| adding to an editor | |
| ``export EDITOR='program'`` | |
| restart bash |