Skip to content

Instantly share code, notes, and snippets.

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

Kremilly Kremilly

👋
Hello, World!
View GitHub Profile
.markdown-body .octicon {
display: inline-block;
fill: currentColor;
vertical-align: text-bottom;
}
.markdown-body .anchor {
float: left;
line-height: 1;
margin-left: -20px;
25a4cddd8e012dccc9745c03da39bc89891d1a7acb3033642a05d2e52709ad91 protegido.pdf
print("Hello world from python via gist")
print("Hello world from python via gist")
print("Hello world from python via gist")
print("Hello world from python via gist")
print("Hello world from python via gist")
print("Hello world from python via gist")
print("Hello world from python via gist")
print("Hello world from python via gist")
{
"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",
4e82899bfa75bd58441d50baad5d2da0245ca654f34b9f31a96bb1bca7bc462f scihub.pdf
25a4cddd8e012dccc9745c03da39bc89891d1a7acb3033642a05d2e52709ad91 protegido.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(), "");