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
import requests | |
API_KEY = "your-api-key" # https://docs.inscribe.ai/reference#authentication | |
headers = {'Authorization': API_KEY} | |
BASE_URL = "https://api.inscribe.ai/api/v2" |
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
[a-z\:]+=\"(url\()?#?[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}\)?\" |
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
$$('.color').map(element => ({ color: element.getAttribute('style'), name: element.textContent.trim()})).map(({color, name}) => `export const ${name.replace(/[ -]/g, '_').replace(/'/g, '').toUpperCase()} = '${/background: (.+);/.exec(color)[1].replace(';', '')}';`).join('\n'); | |
/* | |
Example on this pallet https://flatuicolors.com/palette/us | |
export const LIGHT_GREENISH_BLUE = 'rgb(85, 239, 196)'; | |
export const FADED_POSTER = 'rgb(129, 236, 236)'; | |
export const GREEN_DARNER_TAIL = 'rgb(116, 185, 255)'; | |
export const SHY_MOMENT = 'rgb(162, 155, 254)'; | |
export const CITY_LIGHTS = 'rgb(223, 230, 233)'; |
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
$$('[tabindex="-1"] a').map(a => a.textContent).filter(link => /open\.spotify\.com\/track\/(.+)\?.+/.test(link)).map(trackLink => `spotify:track:${/open\.spotify\.com\/track\/(.+)\?.+/.exec(trackLink)[1]}`).join('\n') |
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
% Put your Bibtex references here |