Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Hoping that dots will connect

Vishal Mishra vcode11

💭
Hoping that dots will connect
View GitHub Profile
View gsoc-scraper.py
import pickle
import time
import pandas as pd
from selenium import webdriver
import selenium.webdriver.support.ui as ui
def get_list(tags) -> str:
'''Converts list of tags to data string.'''
View cracker.py
import itertools
family = ['jake', 'melissa', 'oliver', 'emily']
years = ['1987', '1954', '1963']
symbols = ["!","@","#","$","%","&","*","-","=","_","+",".",","]
count = 0
for member in family:
for year in years:
for symbol in symbols:
words = [member, year, symbol]
for word in itertools.permutations(words,3):
@vcode11
vcode11 / tic-tac-toe.py
Created Apr 27, 2020
A tic tac toe implementation that always wins based on mini-max algorithm
View tic-tac-toe.py
board = [' ' for i in range(3)]
board = [board.copy() for i in range(3)]
def printboard(board):
ch = ' | '
print('Board: ')
for i in range(2):
print(ch.join(board[i]))
print('_'*10, end='\n\n')
print(ch.join(board[2]))