I hereby claim:
- I am sirensoftitan on github.
- I am colep (https://keybase.io/colep) on keybase.
- I have a public key ASA8FyVzA-OX6JmvF6BHahAOAKIj9J5hyv5VELWC-G45KAo
To claim this, I am signing this object:
| (defun sirensoftitan/org-roam-node-random (&optional other-window) | |
| "Find a random Org-roam node not in the daily notes collection. | |
| With prefix argument OTHER-WINDOW, visit the node in another | |
| window instead." | |
| (interactive current-prefix-arg) | |
| (if (not org-roam-dailies-directory) | |
| (org-roam-node-random other-window) | |
| (let* ((expanded-dir (expand-file-name org-roam-dailies-directory)) | |
| (where-pred (concat expanded-dir "%")) | |
| (results (org-roam-db-query [:select [id file pos] :from nodes :where (not-like file $s1)] where-pred)) |
| (defun sirensoftitan/org-roam--is-daily-note (path) | |
| "Determine if note at PATH is a daily note." | |
| (when org-roam-dailies-directory | |
| (string-prefix-p | |
| (expand-file-name org-roam-dailies-directory) | |
| (expand-file-name path)))) | |
| (defun sirensoftitan/org-roam--map-title (item) | |
| "Map ITEM to a local title name." | |
| (let* ((file-path (nth 1 item)) |
| export const useRoutePath = () => { | |
| const router = useRouter(); | |
| const [path, setPath] = useState(router?.asPath); | |
| const [loading, setLoading] = useState(false); | |
| useEffect(() => { | |
| const routeChangeStartFn = (newPath: string) => { | |
| setLoading(true); | |
| setPath(newPath); | |
| }; |
| var _oldConsole = window.console; | |
| window.console = Object.assign( | |
| {}, | |
| _oldConsole, | |
| {debug: (val) => { window.isVault = /Vault/.test(val); _oldConsole.debug(val); }} | |
| ); |
| node_modules/opensea-js/lib/api.d.ts:100:51 - error TS2304: Cannot find name 'Response'. | |
| 100 get(apiPath: string, query?: object): Promise<Response>; | |
| ~~~~~~~~ | |
| node_modules/opensea-js/lib/api.d.ts:108:49 - error TS2304: Cannot find name 'RequestInit'. | |
| 108 post(apiPath: string, body?: object, opts?: RequestInit): Promise<Response>; | |
| ~~~~~~~~~~~ |
| // swiftlint:disable file_length | |
| fileprivate func compareOptionals<T>(lhs: T?, rhs: T?, compare: (_ lhs: T, _ rhs: T) -> Bool) -> Bool { | |
| switch (lhs, rhs) { | |
| case let (lValue?, rValue?): | |
| return compare(lValue, rValue) | |
| case (nil, nil): | |
| return true | |
| default: | |
| return false | |
| } |
I hereby claim:
To claim this, I am signing this object: