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 teams = [ | |
'Tigers', | |
'Foofels', | |
'Drampamdom', | |
'Lakebaka' | |
] | |
const roundRobin = (teams) => { | |
let schedule = [] | |
let league = teams.slice() |
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
var __createElement__ = document.createElement; | |
document.createElement = function(tagName, options){ | |
console.log(`Element <${tagName}> created.`); | |
return __createElement__.call(this, tagName, options); | |
}; |
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
from pyrogram import Client, filters | |
app = Client('CONVERSATION_EXAMPLE') | |
conversations = {} | |
infos = {} | |
def conv_filter(conversation_level): | |
def func(_, __, message): | |
return conversations.get(message.from_user.id) == conversation_level |