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
use regex::Regex; | |
pub struct Minify; | |
impl Minify { | |
pub fn js(code: &str) -> String { | |
let code = Regex::new(RegExp::MIN_JS_REMOVE_WHITESPACE).unwrap().replace_all(code, " "); | |
let code = Regex::new(RegExp::MIN_JS_REMOVE_SINGLE_LINE_COMMENT).unwrap().replace_all(&code, ""); | |
let code = Regex::new(RegExp::MIN_JS_REMOVE_MULTI_LINE_COMMENT).unwrap().replace_all(&code.trim(), ""); |
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
[ | |
"en", | |
"ceb", | |
"de", | |
"fr", | |
"sv", | |
"nl", | |
"ru", | |
"es", | |
"it", |
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
mermaid.initialize({ | |
theme: 'dark', | |
securityLevel: 'loose', | |
}) | |
let mermaidCodeBlocks = document.querySelectorAll('.language-mermaid') | |
mermaidCodeBlocks.forEach( block => { | |
block.classList.remove('language-mermaid') | |
block.classList.add('diagram-mermaid') |
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
@media(prefers-color-scheme:dark){.markdown-body,[data-theme=dark]{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-pretty |
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
[ | |
{ | |
"id": 1, | |
"language": "English", | |
"language_local": "English", | |
"wiki": "en", | |
"articles": "6,816,312", | |
"all_pages": "60,522,733", | |
"edits": "1,215,838,531", | |
"admins": 861, |
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
{ | |
"scripts": [ | |
".js", | |
".ts", | |
".tsx", | |
".vue", | |
".min.js" | |
], | |
"styles": [ |
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
general: | |
force_https: false # Boolean | |
disable_cache: false # Boolean | |
format_date: '%Y-%m-%d' # String | |
calculate_request_time: true # Boolean | |
json_indent_size: 2 # Integer (unsigned) | |
default_user_agent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36' # String | |
results: | |
auto_generate_bibtex: false # Boolean |
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
fetch('https://gh-pinned-api.vercel.app/api?user=kremilly').then( | |
json => json.json() | |
).then(callback => { | |
console.log(callback) | |
}) |
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 os | |
import sys | |
from setuptools import find_packages, setup | |
def read(rel_path: str) -> str: | |
here = os.path.abspath(os.path.dirname(__file__)) | |
# intentionally *not* adding an encoding option to open, See: | |
# https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690 | |
with open(os.path.join(here, rel_path)) as fp: |
NewerOlder