- Install investigate.vim
- Append the contents of the included .vimrc to your own .vimrc file
- Profit!
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
| sudo defaults write /Library/Preferences/com.apple.AOSKit ClientValidationEnabled -bool NO | |
| sudo ditto /usr/libexec/taskgated_debug /usr/libexec/taskgated | |
| sudo defaults write /Library/Preferences/com.apple.security.coderequirements Entitlements -string always | |
| sudo defaults write /Library/Preferences/com.apple.security.coderequirements AllowUnsafeDynamicLinking -bool YES | |
| sudo killall taskgated syncdefaultsd |
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
| map u scrollFullPageUp | |
| let blacklists = ["https://mail.google.com/*","https://www.google.com/maps/*","https://www.codingame.com/*","http://localhost/*"] | |
| " Site Specific settings | |
| site '*://feedly.com/*' { | |
| unmap ? | |
| unmap gg | |
| unmap G | |
| unmap j | |
| unmap k | |
| unmap J |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| (defn selections [xs len] | |
| (if (zero? len) | |
| [[]] | |
| (mapcat (fn [pd] (map #(conj pd %) xs)) | |
| (selections xs (dec len))))) | |
| (defn selections-with-all [xs len] | |
| (filter #(= (set %) (set xs)) (permu xs len))) | |
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
| (defn sort-merge [colls] | |
| (if (<= (count colls) 1) | |
| (first colls) | |
| (let [mi (apply min (map first colls))] | |
| (cons mi | |
| (lazy-seq | |
| (->> (map (fn [[f & r :as coll]] | |
| (if (= f mi) r coll)) | |
| colls) | |
| (filter some?) |
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
| #include <string> | |
| #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN | |
| #include "doctest.h" | |
| std::vector<std::string> split(std::string const& str, std::string const& delim) | |
| { | |
| std::vector<std::string> tokens; | |
| std::string::size_type s = 0; |
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
| #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN | |
| #include "doctest.h" | |
| using ll = long long; | |
| bool isPrime(ll n) | |
| { | |
| if (n == 1) return false; | |
| auto ub = std::sqrt(n); | |
| for (int i = 2; i <= ub; i += 1) { |
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
| execve("/nix/store/as6s9l5vnjv9abl3bhmjljqd6zdjglwk-clojure-1.10.1.469/bin/clj", ["clj", "-e", "(println \"Hello!\")"], 0x7ffe4347bad0 /* 125 vars */) = 0 | |
| brk(NULL) = 0x1236000 | |
| access("/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
| openat(AT_FDCWD, "/nix/store/hnp72ygssavd526rp7qk3yjylyc2klcw-glibc-2.27/lib/tls/haswell/avx512_1/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
| stat("/nix/store/hnp72ygssavd526rp7qk3yjylyc2klcw-glibc-2.27/lib/tls/haswell/avx512_1/x86_64", 0x7ffff1f13430) = -1 ENOENT (No such file or directory) | |
| openat(AT_FDCWD, "/nix/store/hnp72ygssavd526rp7qk3yjylyc2klcw-glibc-2.27/lib/tls/haswell/avx512_1/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
| stat("/nix/store/hnp72ygssavd526rp7qk3yjylyc2klcw-glibc-2.27/lib/tls/haswell/avx512_1", 0x7ffff1f13430) = -1 ENOENT (No such file or directory) | |
| openat(AT_FDCWD, "/nix/store/hnp72ygssavd526rp7qk3yjylyc2klcw-glibc-2.27/lib/tls/haswell/x86_ |
OlderNewer