Skip to content

Instantly share code, notes, and snippets.

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

Jehonathan Thomas justcoding121

🏠
Working from home
View GitHub Profile
/*include needed headers here */
using namespace std;
typedef map<char, bool> pmap;
void main()
{
int T;
//freopen("C:\\input1.txt","r",stdin);
//freopen("C:\\outp.txt","w",stdout);
cin >> T;
for (int kk = 0; kk < T; kk++) {
/* include needed headers here*/
using namespace std;
typedef map<char, int> pmap;
typedef map<int, char> vmap;
void main()
{
int T; //test cases
//freopen("C:\\input.txt","r",stdin);
//freopen("C:\\ouput.out","w",stdout);
cin >> T;
/*
This file contains codes mostly developed by Dr.Ken Christensen. Email: christen@csee.usf.edu
http://www.csee.usf.edu/~christen/tools/toolpage.html
class : Computer Networks
*/
/* Code is readable and therefore comments are added when absolutely needed */
/* Header Files for time, sockets, IO and String */
# apt-get install
sudo apt-get update
# For ubuntu 14.04
sudo apt-get install -y xserver-xorg-video-dummy-lts-trusty
# For ubuntu 16.04
sudo apt-get install -y xserver-xorg-video-dummy-lts-willy
# Copy the xorg.conf to `/etc/X11/xorg.conf`.
wget -P /etc/X11 https://gist.githubusercontent.com/mangoliou/ba126832f2fb8f86cc5b956355346038/raw/b6ad063711226fdd6413189ad905943750d64fd8/xorg.conf