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
""" | |
Mining of Air Quality Data Set | |
Copyright(c) 2016 Anup Pokhrel | |
""" | |
import csv | |
import datetime | |
import calendar | |
from collections import defaultdict | |
import numpy as np | |
import matplotlib.pyplot as plt |
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 requests | |
from bs4 import BeautifulSoup | |
startsym = 423599 | |
endsym = 423638 | |
for symbol in range(startsym, endsym+1): | |
strnum = str(symbol).zfill(7) | |
data = { | |
"symbol": strnum, |
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 urllib.request | |
from urllib.parse import urlencode | |
while True: | |
try: | |
id = int(input("Enter question ID ")) | |
break | |
except: | |
print("Enter a valid ID") |
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
// The sudoku solver by anup | |
#include<iostream> | |
#include<string.h> | |
using namespace std; | |
struct Cell | |
{ | |
int _Row,_Column; | |
int _Value; |
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/python3 | |
#Tic Tac Toe with AI (Minmax with alpha beta pruning) | |
#By virtualanup | |
#http://virtualanup.com | |
import pygame,random | |
from pygame.locals import * | |
from sys import exit | |
import math |
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/python3 | |
#Tic Tac Toe with AI (Minmax) | |
#By virtualanup | |
#http://virtualanup.com | |
import pygame,random | |
from pygame.locals import * | |
from sys import exit | |
import math |
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
# tictactoe | |
# by Virtualanup | |
import pygame,random | |
from pygame.locals import * | |
from sys import exit | |
import math | |
from collections import defaultdict | |
#game constants | |
FPS=20 |
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
# Snake Game Version 2.0 | |
# By virtualanup | |
# http://www.virtualanup.com | |
import pygame,random | |
from pygame.locals import * | |
from sys import exit | |
import math |
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
/********************************************* | |
* Small lisp parser | |
* By virtualanup | |
* http://www.virtualanup.com | |
*********************************************/ | |
#include<iostream> | |
#include<string> | |
#include<cmath> | |
#include<sstream> |
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
# Snake Game | |
# By virtualanup | |
# http://www.virtualanup.com | |
import pygame,random | |
from pygame.locals import * | |
from sys import exit | |
import math | |
#just some declarations |