This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" ] | |