Skip to content

Instantly share code, notes, and snippets.

View skinnyfads's full-sized avatar
🏠
Working from home

ir skinnyfads

🏠
Working from home
  • Kanagawa Prefecture
  • 11:34 (UTC +09:00)
  • Reddit u/skinnyfads
View GitHub Profile
@MohammadHosseinGhorbani
MohammadHosseinGhorbani / conversation.py
Last active May 8, 2024 09:10
Conversations in pyrogram (no extra package needed)
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
@FarazPatankar
FarazPatankar / robin.js
Created April 16, 2019 10:19 — forked from mikeyakymenko/robin.js
Round robin, league matches schedule on javascript
let teams = [
'Tigers',
'Foofels',
'Drampamdom',
'Lakebaka'
]
const roundRobin = (teams) => {
let schedule = []
let league = teams.slice()
@ajhsu
ajhsu / index.js
Last active January 28, 2023 15:33
document.createElement proxy function
var __createElement__ = document.createElement;
document.createElement = function(tagName, options){
console.log(`Element <${tagName}> created.`);
return __createElement__.call(this, tagName, options);
};