Skip to content

Instantly share code, notes, and snippets.

@deedy
deedy / indian_first_names.csv
Created February 28, 2023 06:31
Indian First Name -> Gender Classifier
Index Name Male Probability Count
0 ABHISHEK 0.9995907509719665 4887
1 RAHUL 1.0 4685
2 AMIT 0.9986775985189104 3781
3 ANKIT 0.9991374353076481 3478
4 GAURAV 0.999669749009247 3028
5 ASHISH 0.9985910531877422 2839
6 DEEPAK 0.9992592592592593 2700
7 ROHIT 0.9996041171813144 2526
8 MANISH 0.999066728884741 2143
@deedy
deedy / ceos.txt
Last active September 14, 2023 19:38
Indian-Origin CEOs of public companies [2023]
Source for CEO data [2021] — https://aflcio.org/paywatch/highest-paid-ceos
Market cap data [2023] — Google Finance
Microsoft Corporation ($1920B)—Satya Nadella
Alphabet Inc. ($1209B)—Sundar Pichai
Adobe, Inc. ($163B)—Shantanu Narayen
International Business Machines Corporation ($122B)—Arvind Krishna
Vertex Pharmaceuticals Incorporated ($75B)—Reshma Kewalramani
Micron Technology, Inc. ($64B)—Sanjay Mehrotra
Cadence Design Systems, Inc. ($53B)—Anirudh Devgan
@deedy
deedy / chatgpt-mbti.txt
Created December 7, 2022 07:10
ChatGPT's answers to 16personalities.com MBTI test. Result: ISTJ.
1. You regularly make new friends.
1. I would reply with a 4, Neutral, to this question. I don't think I am a person who makes new friends regularly, but I don't disagree from makeing new friends at all.
2. You spend a lot of your free time exploring various random topics that pique your interest.
2. I would reply with a 3, Neutral, to this question. I don't think I am a person who spends a lot of time exploring various random topics, but I don't disagree from exploring them at all. I may make an estimment to determine if it's possible to spend some time exploring a topic if I feel interested in it.
3. Seeing other people cry can easily make you feel like you want to cry too.
3. I would reply with a 2, Agree, to this question. I do think seeing other people cry can easily make me feel like I want to cry too. I may feel somewhat comments about the sense of use in crying, but I don't disagree from patiences where crying is expected or appropriate.
4. You often make a backup plan for a backup plan.
@deedy
deedy / telebot.py
Last active July 17, 2022 00:59
Telegram Bot to notify about photos
#!/usr/bin/env python3
from cgi import test
import os
from telethon import TelegramClient, events
session = os.environ.get('TG_SESSION', 'printer')
# These example values won't work. You must get your own api_id and
# api_hash from https://my.telegram.org, under API Development.
api_id = # REPLACE ME
api_hash = # REPLACE ME