Skip to content

Instantly share code, notes, and snippets.

@vibhurishi
vibhurishi / holi.py
Last active March 29, 2021 10:49
Generates a screen full of text in various colours. I created it on Holi for creating a Happy Holi Message. Feel free to customize it any way you want.
import pygame
from random import seed, randint
pygame.init()
input_text = "Happy Holi !"
bg_color = ( 255,255,255)
fg_color = (0,0,0)
fg_font = pygame.font.Font(None, 72)
#!/usr/bin/env python
# This is a small helper to quickly fetch details of apps from the Goole Play Store. This works as of 2019 Feb.
#
# For this to work, you need to create a appslist.txt file with the URLs of the apps. You can get these URLs
# by going to the PlayStore in a browser on the PC. Below is sample text that you can use as a starter:
#
# -- Sample applist.txt -- Copy paste below to the file.
# https://play.google.com/store/apps/details?id=com.facebook.katana
# https://play.google.com/store/apps/details?id=com.whatsapp
# A small utility to read any txt file and output the number of words
import sys
import re
from collections import Counter
def word_count(fname):
# This is the ignore word list
ignore_words = [ "the" , "of", "to", "and", "in", "is" , "a", "this", "that", "for", "with", "was", "on", "have", "it", "he", "are", "not", "but" ]