This file contains hidden or 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
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]: |
This file contains hidden or 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
# WELCOME TO SQUID 6.6 | |
# ---------------------------- | |
# | |
# This is the documentation for the Squid configuration file. | |
# This documentation can also be found online at: | |
# http://www.squid-cache.org/Doc/config/ | |
# | |
# You may wish to look at the Squid home page and wiki for the | |
# FAQ and other documentation: | |
# http://www.squid-cache.org/ |
This file contains hidden or 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
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); |
This file contains hidden or 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
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), |
This file contains hidden or 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
import configparser | |
import logging | |
import os | |
import shutil | |
config = {} | |
if not os.path.exists('config.ini'): | |
shutil.copyfile('default_config.ini', 'config.ini') # Copy defaults to config.ini | |
logging.warning(f"Config was created. Restart the program") |