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
curl --location --request POST 'https://us-central1-ldr-prod.cloudfunctions.net/api/sign' \ | |
--header 'authority: us-central1-ldr-prod.cloudfunctions.net' \ | |
--header 'accept: application/json, text/plain, /' \ | |
--header 'accept-language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7' \ | |
--header 'content-type: application/json' \ | |
--header 'dnt: 1' \ | |
--header 'origin: https://lovedeathandart.com/' \ | |
--header 'referer: https://lovedeathandart.com/' \ | |
--header 'sec-fetch-dest: empty' \ | |
--header 'sec-fetch-mode: cors' \ |
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
tell application "Google Chrome" | |
set tab_link to (get URL of active tab of first window) | |
set tab_title to (get title of active tab of first window) | |
set md_link to ("{{[[TODO]]}} read: " & "[" & tab_title & "]" & "(" & tab_link & ")" & " #reading-list #article #inbox") | |
set the clipboard to md_link | |
display notification md_link with title "Success" | |
end tell |
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
;;; ~/.doom.d/+bindings.el -*- lexical-binding: t; -*- | |
;; Unbind keys | |
(map! :leader | |
"A" nil | |
"X" nil | |
) | |
;; Leader key |
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
const throttle = (callback, limit) => { | |
let timeoutHandler = null | |
return () => { | |
if (timeoutHandler == null) { | |
timeoutHandler = setTimeout(() => { | |
callback() | |
timeoutHandler = null | |
}, limit) | |
} | |
} |
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
{"tags":[],"lastModified":1517888367215} |
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
def chain(*iterables): | |
# chain('ABC', 'DEF') => A B C D E F | |
for it in iterables: | |
for element in it: | |
yield element |
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
# http://stackoverflow.com/questions/2158395/flatten-an-irregular-list-of-lists-in-python | |
def flatten(nested_list): | |
for i in nested_list: | |
if isinstance(i, collections.Iterable) and not isinstance(i, (str, bytes)): | |
yield from flatten(i) | |
else: | |
yield i |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
- Stores data elements based on an sequential, most commonly 0 based, index.
- Based on tuples from set theory.