Skip to content

Instantly share code, notes, and snippets.

@chynkm
chynkm / pokemon-coding-challenge-requirements.txt
Last active April 25, 2025 16:09
pokemon-coding-challenge-requirements.txt
aiofiles==24.1.0
aiohappyeyeballs==2.6.1
aiohttp==3.11.18
aiosignal==1.3.2
asyncio==3.4.3
attrs==25.3.0
certifi==2025.1.31
charset-normalizer==3.4.1
frozenlist==1.6.0
idna==3.10
@chynkm
chynkm / pokemon-coding-challenge-third-try.py
Created April 16, 2025 09:07
Pokemon coding challenge third try
import asyncio
import aiohttp
import time
queue = asyncio.Queue()
async def producer(start_url, session):
url = start_url
while url:
@chynkm
chynkm / pokemon-coding-challenge-second-try.py
Last active April 16, 2025 08:54
Pokemon coding challenge second try
import asyncio
import aiohttp
import time
def find_fire(type_list):
for ty in type_list:
if ty["type"]["name"] == "fire":
return True
@chynkm
chynkm / pokemon-coding-challenge-first-try.py
Last active April 16, 2025 08:39
Pokemon coding challenge first try
import requests
import time
def find_fire(type_list):
for ty in type_list:
if ty["type"]["name"] == "fire":
return True
return False
$(function() {
APP.thankYou.init();
});
var APP = APP || {};
APP.thankYou = {
init: function() {
this.ajaxToken();