Skip to content

Instantly share code, notes, and snippets.

View kewldan's full-sized avatar
🏗️
Working 24/7

kewldan kewldan

🏗️
Working 24/7
View GitHub Profile
@kewldan
kewldan / Fibonacci.py
Created October 18, 2024 13:37
Fibonacci numbers functions, such as fib to dec, dec to fib, dec to all possible fibs, explain fib. NON-RECURSIVE ONLY
Fibonacci = str
def fib_by_index(n: int) -> int:
"""
Calculates the n-th Fibonacci number. O(n)
:param n: n-th Fibonacci number.
:return: Fibonacci number VALUE
"""
if n in [0, 1]:
@kewldan
kewldan / abuz.js
Last active July 10, 2024 13:22
Homyak Abuz
window.ALLOW = () => {
sessionStorage.__telegram__initParams = JSON.stringify({...JSON.parse(sessionStorage.__telegram__initParams), tgWebAppPlatform: 'android'});
location.reload();
};
window._Click = (count) => {
window._DEBUG && console.log(`Requested count: ${count}`);
const earnPerClick = Number.parseInt(localStorage.__earnPerClick || '1');
window._DEBUG && console.log(`Earn per click: ${earnPerClick}`);
const timestamp = Math.floor(Date.now() / 1000);
@kewldan
kewldan / sources.js
Last active March 29, 2024 18:50
Notcoin abuse
function STOP() {
clearInterval(window.__interval); // Stop the loop
console.log('STOPPED')
}
function __SEND(endpoint, data) {
return new Promise(accept => {
fetch('https://clicker-api.joincommunity.xyz' + endpoint, { //API endpoint
method: 'POST',
body: JSON.stringify(data),