Skip to content

Instantly share code, notes, and snippets.

View AleksandrHovhannisyan's full-sized avatar
🇦🇲

Aleksandr Hovhannisyan AleksandrHovhannisyan

🇦🇲
View GitHub Profile
@AleksandrHovhannisyan
AleksandrHovhannisyan / bypass-quizlet.css
Created October 30, 2022 19:43
CSS to bypass Quizlet paywalls
[data-testid="PayWallOverlay"] {
display: none;
}
* {
filter: none !important;
}
@AleksandrHovhannisyan
AleksandrHovhannisyan / goldbug.js
Created May 14, 2022 21:55
Frequency analysis of the ciphertext in Edgar Allen Poe's "The Gold Bug" short story
// https://poestories.com/read/goldbug
const cipherText = `53‡‡†305))6*;4826)4‡.)4‡);806*;48†8¶60))85;1‡(;:‡*8†83(88)5*†;46(;88*96*?;8)*‡(;485);5*†2:*‡(;4956*2(5*-4)8¶8*;4069285);)6†8)4‡‡;1(‡9;48081;8:8‡1;48†85;4)485†528806*81(‡9;48;(88;4(‡?34;48)4‡;161;:188;‡?;`;
const getFrequencyTable = (list) => {
return list.reduce((table, element) => {
if (!table[element]) {
table[element] = {
count: 0,
percentage: 0,
};
@AleksandrHovhannisyan
AleksandrHovhannisyan / receipts.js
Created May 9, 2022 17:34
cassidoo-may-2022-challenge
let receipts = [
{ name: "Ximena", paid: 45 },
{ name: "Clara", paid: 130 },
{ name: "Ximena", paid: 100 },
{ name: "Cassidy", paid: 140 },
{ name: "Cassidy", paid: 76 },
{ name: "Clara", paid: 29 },
{ name: "Ximena", paid: 20 },
];