View SelfWealthDarkMode.css
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
nav.left-nav { | |
background-color: var(--brand-grey); | |
} | |
nav.left-nav ul.nav-section li a:hover { | |
background-color: var(--gray-dark); | |
color: var(--white); | |
} | |
body, | |
.heading, | |
h1, |
View extract_commbank.py
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
#!/usr/bin/env python | |
# SPDX-License-Identifier: MIT | |
# Copyright nullableVoidPtr | |
import sys | |
import PyPDF2 | |
import re | |
from decimal import Decimal | |
from datetime import datetime | |
from typing import Iterable, Tuple, Optional |
View cursed64.js
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 btoa = input => | |
(output => | |
(length => | |
length % 3 ? | |
output.slice(0, (length % 3) - 3) + "=".repeat(3 - (length % 3)) : | |
output | |
)(input.length) | |
)(input.replace(/.{1,3}/g, chunk => | |
(f => | |
(x => |
View abc171_C.c
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
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) { | |
char s[12] = {0}; | |
int i = 12; | |
long long N; | |
for (scanf("%lld", &N); N; s[--i] = 'a' + (--N % 26), N /= 26); | |
printf("%s\n", &s[i]); | |
} |
View atcoder-async.py
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
#!/usr/bin/python3 | |
import asyncio | |
import aiohttp | |
import aiofiles | |
from pathlib import Path | |
import datetime | |
import os | |
import time | |
from sys import argv | |
from bs4 import BeautifulSoup, SoupStrainer |
View codeforces.py
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
#!/usr/bin/python3 | |
import re | |
from pathlib import Path | |
import datetime | |
import requests | |
import os | |
import time | |
from sys import argv | |
from bs4 import BeautifulSoup |
View minesweeper.js
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 BOMB = -1; | |
const BLANK = 0; | |
function generateMap(width, height, bombCount) | |
{ | |
const map = Array.from(new Array(height), () => Array.from(new Array(width), () => 0)); | |
for(let i = 0; i < bombCount; ) { | |
const posX = Math.floor(Math.random() * width); | |
const posY = Math.floor(Math.random() * height); |
View gcd256.c
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
#include <stdio.h> | |
unsigned char gcd256(unsigned char a) { | |
for (int i = 0; i < 8; i++) if ((a >> i) & 1) return 1 << i; | |
} | |
int main() { | |
for (int i = 0; i < 256; i++) printf("%d\n", gcd256(i)); | |
} |
View dump_djgpp.py
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
#!/usr/bin/python | |
from sys import argv | |
from struct import unpack | |
def dump_coff(input_buffer): | |
header = dict(zip(['signature', 'bytes_in_last_block', 'blocks_in_file', | |
'num_relocs', 'header_paragraphs', 'min_extra_paragraphs', | |
'max_extra_paragraphs', 'ss', 'sp', 'checksum', 'ip', 'cs', | |
'reloc_table_offset', 'overlay_number'], unpack("<HHHHHHHHHHHHHH", input_buffer[:28]))) | |
if header['signature'] != 0x5A4D: |
View decodeScrapeshieldEmails.py
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
def decodeScrapeshieldEmail(s): | |
retval = "" | |
key = int(s[:2], 16) | |
for char in [int(s[i:i+2], 16) for i in range(2, len(s), 2)]: | |
retval += chr(char ^ key) | |
return retval | |
#return "".join([chr(c^int(s[:2],2))for c in [int(s[i:i+2],16)for i in range(2,len(s),2))]]) |
NewerOlder