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 escapeAsCsv(str) { | |
| // Double up double quotes and quote the entire string if necessary | |
| if (str.includes(',') || str.includes('\n') || str.includes('"')) { | |
| return '"' + str.replace(/"/g, '""') + '"'; | |
| } | |
| return str; | |
| } | |
| // Export Confluence table as CSV | |
| // Select the tbody element in Chrome devtools Elements panel then run the |
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
| public class EZMap<T> { | |
| public static void main(String[] args) { | |
| Map<String,Object> m = hashMap( | |
| bob -> 5, | |
| TheGimp -> 8, | |
| incredibleKoolAid -> "James Taylor", | |
| heyArnold -> new Date() | |
| ); | |
| System.out.println(m); | |
| } |
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
| ;; | |
| ;; NS CHEATSHEET | |
| ;; | |
| ;; * :require makes functions available with a namespace prefix | |
| ;; and optionally can refer functions to the current ns. | |
| ;; | |
| ;; * :import refers Java classes to the current namespace. | |
| ;; | |
| ;; * :refer-clojure affects availability of built-in (clojure.core) | |
| ;; functions. |