Skip to content

Instantly share code, notes, and snippets.

@beginbot
beginbot / flag_challenge.py
Created January 30, 2020 22:48
Flag Download Challenge
import os
import requests
resp = requests.get('http://flupy.org/data/flags//cn/cn.gif')
with open("downloads/cn.gif", 'wb') as fp:
fp.write(resp.content)
# Find and Download all Flags in the fastest time possible
@beginbot
beginbot / coro.py
Created January 29, 2020 22:11
Coroutine Challenge
import inspect
def simple_coroutine():
print("-> coroutine started")
x = yield
print("-> coroutine received:", x)
my_coro = simple_coroutine()