Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am ritiek on github.
  • I am ritiek ( on keybase.
  • I have a public key ASA1qFuAESdfigezYxV8q4XPEY6hqSk8UHvogWNRJCsKJwo

To claim this, I am signing this object:

ritiek /
Last active Dec 22, 2017
Scrape links from google search
#!/usr/bin/env python
import requests
from bs4 import BeautifulSoup
search_term = 'hello'
0 = page 1
10 = page 2
ritiek /
Last active Jan 27, 2018
Setup rust-lang local development environment
# git clone
# cd rust
# <make changes to source if any>
# full build (1st time)
./ install
rustup toolchain link develop build/x86_64-unknown-linux-gnu/stage2
rustup default develop
rustc -V
ritiek /
Created Jun 6, 2018
Fork all your starred repositories to an organization you own
from github import Github
g = Github(TOKEN)
organ = g.get_organization(ORGANIZATION)
user = g.get_user()
for repo in user.get_starred():
ritiek /
Created Aug 11, 2018
Google Summer of Code 2018 Final Report

Google Summer of Code 2018 Final Report

My original project - to create a factory based implementation for unifying handling of different types of Plasmas, was completed sooner than expected. Here are the link to related pull requests I made during the summer.

PR Status Description
#501 Merged Raise more fitting NotImplementedError for functions that are yet to be implemented in our Plasma metaclass
#489 Merged Ind
ritiek / bot.au3
Created Nov 3, 2018
chrome t-rex game bot
View bot.au3
HotKeySet("{F10}", "Exitter")
While 1
$color = PixelGetColor(545,229)
If $color = 5460819 Then
Send("{DOWN UP}")
Send("{UP DOWN}")
Send("{UP UP}")
ritiek /
Last active Dec 19, 2018
Count number of lines of code in a project
find . -name "*.py" -type f -exec grep . {} \; | wc -l
ritiek /
Last active Feb 20, 2019
Aww yiss! Rick n' Roll Android Apps
ritiek /
Last active Mar 25, 2019
My OpenAstronomy GSoC 2018 Application
ritiek /
Last active Mar 31, 2019
A simple (py)game with purposely messed code to teach important programming concept to newbies
import pygame
import random
width, height = (450, 600)
background_color = (10,10,10)
clock = pygame.time.Clock()
screen = pygame.display.set_mode((width, height))
pygame.display.set_caption("Falling Blocks")