Skip to content

Instantly share code, notes, and snippets.

@shinysu
shinysu / Questions_bkup.csv
Last active March 18, 2020 14:02
k-means clustering using spacy for vectorization
In Chennai which college is best for automobile engineering
Is aeronautical engineering at SRM Chennai worth it?
I want to study aerospace engineering in Chennai.
Can I get st joseph's engineering college Chennai with the rank of 27 k and 16k in bc category.
Do College of Engineering, Guindy Campus, Chennai provide B.Tech studies in ECE or EEE branch?
"""
bounce the ball at the edges
"""
import pgzrun
from random import randint
WIDTH = 800
HEIGHT = 600
BLACK = (0, 0, 0)
@shinysu
shinysu / pong.py
Created June 9, 2020 05:53
simple pong game using pygamezero
import pgzrun
from random import randint
WIDTH = 800
HEIGHT = 600
BLACK = (0, 0, 0)
paddle = {"x": 20, "y": HEIGHT-50, "length": 200, "width":25}
ball = {"x": 0, "y": 0, "move_x": 5, "move_y": 5}
BALL_RADIUS = 25
@shinysu
shinysu / extract_quora.py
Created August 10, 2020 23:31
to extract questions from quora
import csv
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
TOTAL_PAGES = 100
CHROME_DRIVER_PATH = '/Users/shinysuresh/Documents/chromedriver-5'
url = 'https://www.quora.com/search?q=engineering+colleges+hostel+Chennai'
OUTPUT_FILE = '/Users/shinysuresh/Projects/StudentQuestions/quora_questions.csv'
@shinysu
shinysu / 0_Day1_PythonBridgeCourse.py
Created August 24, 2020 16:08
Concepts used - Statements, loops, variables, functions
'''
draw a line using turtle
'''
import turtle
t = turtle.Turtle()
t.forward(100)
@shinysu
shinysu / 0_turtle-1
Last active July 21, 2021 04:38
Day 1
'''
draw a line using turtle
'''
import turtle
t = turtle.Turtle()
t.forward(100)
@shinysu
shinysu / 0_Day2.py
Created August 26, 2020 15:14
Example programs for day2
'''
fill the polygon with colors
'''
import turtle
t = turtle.Turtle()
def draw_shape(t, sides, length):
angle = 360 / sides
for i in range(sides):
@shinysu
shinysu / Day3.py
Last active July 26, 2021 06:03
Day3 - python turtle
'''
a program to draw a circle and a square
'''
import turtle
t = turtle.Turtle()
def draw_circle(radius):
t.circle(radius)
@shinysu
shinysu / 0_Drawbot.py
Last active September 30, 2020 07:15
draw bot program
'''
a program to draw a circle and a square
'''
import turtle
t = turtle.Turtle()
def draw_circle(radius):
t.circle(radius)
@shinysu
shinysu / 0_Day4.py
Created September 2, 2020 11:02
Day 4 programs
'''
print a string
'''
print("hello!")