Copyright <YEAR> <OWNER>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
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
type Curried<A, R, Args extends any[] = []> = A extends [] | |
? R | |
: A extends [infer Head, ...infer Tail] | |
? { (...args: [...Args, Head]): Curried<Tail, R> } & (Tail extends [] | |
? {} | |
: Curried<Tail, R, [...Args, Head]>) | |
: never; | |
declare function DynamicParamsCurrying<Args extends any[], Ret>( | |
fn: (...args: Args) => Ret |
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
#![allow(non_snake_case)] | |
mod Caesar { | |
pub fn encrypt(string: String, n: i32) -> String { | |
let n = n % 26; | |
let mut res = String::new(); | |
for char in string.as_bytes() { | |
if !char.is_ascii_alphabetic() || char.is_ascii_whitespace() { | |
res.push(char::from_u32(*char as u32).unwrap()); | |
continue; |
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
#!comment: This is a list of the top 100,000 most frequently-used English words | |
#!comment: according to Wiktionary. | |
#!comment: | |
#!comment: It was compiled in August 2005 and coalesced into a handy list for | |
#!comment: use in John the Ripper. | |
#!comment: | |
#!comment: | |
#!comment: Pull date: Sun Jan 15 22:03:54 2012 GMT | |
#!comment: | |
#!comment: Sources: |
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
the | |
of | |
to | |
and | |
a | |
in | |
is | |
it | |
you | |
that |
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
Love Is a Drug Papithbk | |
Kaancepts 2 K.A.A.N. | |
I Don't Feel Anymore Gremlin | |
Lonely Akon | |
i don't really understa Kid T & Lul Patch | |
Journey Akon | |
Insecurities Damien | |
She Wonders Why (I Don' Danny G | |
Tired Nick Vig | |
Why Am I Waiting Papithbk |
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
TypeScript 187 hrs 4 mins ββββββββββββββββββββ 49.9% | |
Rust 87 hrs 1 min ββββββββββββββββββββ 23.2% | |
SCSS 26 hrs 48 mins ββββββββββββββββββββ 7.2% | |
JavaScript 13 hrs 42 mins ββββββββββββββββββββ 3.7% | |
JSON 11 hrs 35 mins ββββββββββββββββββββ 3.1% | |
CSS 10 hrs 13 mins ββββββββββββββββββββ 2.7% | |
Bash 6 hrs 47 mins ββββββββββββββββββββ 1.8% | |
Python 5 hrs 33 mins ββββββββββββββββββββ 1.5% | |
Other 5 hrs 3 mins ββββββββββββββββββββ 1.4% | |
Markdown 4 hrs 41 mins ββββββββββββββββββββ 1.3% |
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
let token = "your token"; | |
function login(token) { | |
setInterval(() => { | |
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"` | |
}, 50); | |
setTimeout(() => { | |
location.reload(); | |
}, 2500); | |
} |
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 { execSync } = require('child_process'); | |
const version = process.versions.node.split('.')[0]; | |
console.log(process.env.NODE_VERSION); | |
(async () => { | |
console.info('[LOG]: CHECKING NODE VERSION...') | |
if (version == '16') { | |
console.info(`[LOG]: NODE VERSION IS ${version}`) | |
} else { |
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
// default: 5.187ms (nevermind) | |
function f(s) { | |
let arr = Array.apply(0, { length: 26 }).map((c) => 0) | |
for (let c of s.split('')) arr[c.charCodeAt(0) - 'a'.charCodeAt(0)]++; | |
for (let c of s.split('')) { | |
if (arr[c.charCodeAt(0) - 'a'.charCodeAt(0)] == 1) return c; | |
} | |
console.log(arr) | |
return '_' | |
} |
NewerOlder