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
  • 12:19 (UTC +09:00)
  • Reddit u/skinnyfads
View GitHub Profile
@skinnyfads
skinnyfads / robin.js
Created January 8, 2023 05:30 — forked from FarazPatankar/robin.js
Round robin, league matches schedule on javascript
let teams = [
'Tigers',
'Foofels',
'Drampamdom',
'Lakebaka'
]
const roundRobin = (teams) => {
let schedule = []
let league = teams.slice()
@skinnyfads
skinnyfads / index.js
Created January 28, 2023 15:33 — forked from ajhsu/index.js
document.createElement proxy function
var __createElement__ = document.createElement;
document.createElement = function(tagName, options){
console.log(`Element <${tagName}> created.`);
return __createElement__.call(this, tagName, options);
};
@skinnyfads
skinnyfads / conversation.py
Created February 10, 2023 04:33 — forked from MohammadHosseinGhorbani/conversation.py
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