Skip to content

Instantly share code, notes, and snippets.

View alyakhtar's full-sized avatar
🏠
Working from home

Aly Akhtar alyakhtar

🏠
Working from home
View GitHub Profile
@alyakhtar
alyakhtar / Movie_list.txt
Created May 31, 2017 22:23
BOLLYWOOD GAME
OK Jaanu
Haraamkhor
Coffee with D
Kaabil
Raees
Jolly LLB 2
Runningshaadi.com
The Ghazi Attack
Irada (2017 film)
Chauhar
from bs4 import BeautifulSoup
import requests
import webbrowser
from tabulate import tabulate
mylist = {}
source_code = requests.get('http://www.intern.supply/')
plain_text = source_code.text
@alyakhtar
alyakhtar / main.cpp
Created October 16, 2015 09:02
Tic-Tac-Toe (OpenGL)
#include<iostream>
#include<stdlib.h>
#include<math.h>
#include<time.h>
#include<string.h>
#include<GLUT/glut.h>
int matrix[3][3]; //this matrix stores the x and o and blank box of the game, a value of 0 is blank, 1 is x and 2 is o
int playerturn; //playerturn if it is 1 then 1st players turn else if it is 2 then its second players turn
int result; //result of the game if it is 0 then draw if it is 1 then player 1 wins if it is 2 then player 2 wins
#!/usr/bin/python
# -*- coding: utf-8 -*-
#Importing the required Modules
import psycopg2
import sys
from PyQt4 import QtCore, QtGui
from GUI import Ui_Dialog
con = None
@alyakhtar
alyakhtar / rtos
Created May 23, 2015 13:32
RTOS installation
Want to install RTOS in your device. Don't worry, here is the solution:
1. Add these repositories manually to /etc/apt/sources.list file. To do so
From command line enter
sudo gedit /etc/apt/sources.list
And add these two lines at the end of the file
deb http://ppa.launchpad.net/abogani/realtime/ubuntu precise main
@alyakhtar
alyakhtar / elementary.sh
Created May 2, 2015 14:50
Elementary tweaks
apt-get update
apt-get upgrade
apt-get dist-upgrade
add-apt-repository ppa:numix/ppa
add-apt-repository ppa:moka/stable
add-apt-repository ppa:teejee2008/ppa
apt-add-repository ppa:versable/elementary-update
add-apt-repository ppa:yunnxx/elementary -y
apt-get update
apt-get install firefox vlc pidgin elementary-tweaks elementary-wallpaper-collection indicator-synapse adobe-flashplugin