Skip to content

Instantly share code, notes, and snippets.

I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 119
Hash: 60647339 11ca4296 cc856e2e ea0c6613
71b3252f 641ca603 70ddb214 5aefed54
3f5c4fe9 58b1f587 e9b2e91b bab93eae
8784c13c 4ae1b598 832ada0e df20de3e

Keybase proof

I hereby claim:

  • I am shekhirin on github.
  • I am shekhirin (https://keybase.io/shekhirin) on keybase.
  • I have a public key ASCmHPB66nOUJpvRjQ7gFLsuQu4zCf8dcb3uWLsjV73cgAo

To claim this, I am signing this object:

@shekhirin
shekhirin / navalny.py
Last active January 21, 2021 18:14
https://youtu.be/ipAnwilMncI in YouTube trends all over the world
import requests
from tqdm import tqdm
countries_response = requests.get('https://api.popular50.com/countries').json()
countries = [x['_id'] for x in countries_response['hits']]
data = {x: requests.get('https://api.popular50.com/v1videos', params={'country_code': x, 'category_id': 0}).json() for x in tqdm(countries)}
naval = {x: [i for i, z in enumerate(y['hits']) if z['_source']['video_id'] == 'ipAnwilMncI'] for x, y in data.items()}
countries_data = {x['_id']: x for x in countries_response['hits']}
print('\n'.join([f'{x[0]} – {x[1][0] + 1}' for x in sorted({countries_data[x]['_source']['country_name']: y for x, y in naval.items() if len(y) > 0}.items(), key=lambda x: x[1][0])]))