Skip to content

Instantly share code, notes, and snippets.

View kremilly's full-sized avatar
👋
Hello, World!

Kremilly kremilly

👋
Hello, World!
View GitHub Profile
{
"javascript": "#f1e05a",
"python": "#3572a5",
"java": "#b07219",
"ruby": "#701516",
"php": "#4f5d95",
"c++": "#f34b7d",
"c#": "#178600",
"typescript": "#2b7489",
"shell": "#89e051",

Keybase proof

I hereby claim:

  • I am kremilly on github.
  • I am kremilly (https://keybase.io/kremilly) on keybase.
  • I have a public key ASA3TCK_fUJWCFnk_szBoNBx18o0Sr_fpllvtnXkRMpkPAo

To claim this, I am signing this object:

/* PrismJS 1.29.0 */
code[class*=language-],pre[class*=language-]{color:#fff;background:0 0;text-shadow:0 -.1em .2em #000;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}:not(pre)>code[class*=language-],pre[class*=language-]{background:#4c3f33}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border:.3em solid #7a6651;border-radius:.5em;box-shadow:1px 1px .5em #000 inset}:not(pre)>code[class*=language-]{padding:.15em .2em .05em;border-radius:.3em;border:.13em solid #7a6651;box-shadow:1px 1px .3em -.1em #000 inset;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#997f66}.token.punctuation{opacity:.7}.token.namespace{opacity:.7}.token.boolean,.token.co
{
"br.com": "whois.centralnic.net",
"cn.com": "whois.centralnic.net",
"de.com": "whois.centralnic.net",
"eu.com": "whois.centralnic.net",
"gb.com": "whois.centralnic.net",
"gb.net": "whois.centralnic.net",
"gr.com": "whois.centralnic.net",
"hu.com": "whois.centralnic.net",
"in.net": "whois.centralnic.net",
25a4cddd8e012dccc9745c03da39bc89891d1a7acb3033642a05d2e52709ad91 protegido.pdf
4e82899bfa75bd58441d50baad5d2da0245ca654f34b9f31a96bb1bca7bc462f scihub.pdf

cover

Header 1

Header 2

Header 3

Header 4

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(), "");
[
"en",
"ceb",
"de",
"fr",
"sv",
"nl",
"ru",
"es",
"it",
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')
@kremilly
kremilly / github-dark-md.css
Created May 7, 2024 02:01
GitHub markdown dark theme
@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