Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

Ritiek Malhotra ritiek

🌴
On vacation
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

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

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
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}")
Sleep(150)
Send("{UP UP}")
Sleep(300)
@ritiek
ritiek / count.sh
Last active Dec 19, 2018
Count number of lines of code in a project
View count.sh
find . -name "*.py" -type f -exec grep . {} \; | wc -l
@ritiek
ritiek / README.md
Last active Feb 20, 2019
Aww yiss! Rick n' Roll Android Apps
View README.md
@ritiek
ritiek / PlasmaPy.md
Last active Mar 25, 2019
My OpenAstronomy GSoC 2018 Application
View PlasmaPy.md
@ritiek
ritiek / falling_blocks.py
Last active Mar 31, 2019
A simple (py)game with purposely messed code to teach important programming concept to newbies
View falling_blocks.py
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")
pygame.display.flip()
You can’t perform that action at this time.