python
instead write
winpty python
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Modal Test</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> | |
</head> | |
<body> |
/** | |
* Author: Rajmani Arya | |
* Originally By: http://stackoverflow.com/users/121747/jack | |
*/ | |
static int fd_in, fd_out; | |
static fpos_t pos_in, pos_out; | |
void switchStdin(const char *newStream) | |
{ | |
fflush(stdin); |
I've seen many people got stuck at
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install <any-package>
these command despite of setting http_proxy or HTTP_PROXY. Since Ubuntu 15.10, it removed apt-get default proxy configuration. So to overcome this, create an proxy configuration file
{ | |
"cmd": ["gcc", "$file", "-o", "${file_path}/${file_base_name}"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c", | |
"variants": | |
[ | |
{ | |
"name": "Run", | |
"shell": true, |
{ | |
"cmd": ["g++", "$file", "-o", "${file_path}/${file_base_name}"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c", | |
"variants": | |
[ | |
{ | |
"name": "Run", | |
"shell": true, |
#include <bits/stdc++.h> | |
#include <unistd.h> | |
using namespace std; | |
int USER = 1; | |
int COMPUTER = 0; | |
#define LEFT 0 | |
#define RIGHT 1 | |
#define UP 2 |
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main () { | |
string num1, num2, res, len1; | |
cout << "Enter Number: "; cin >> num1; | |
cout << "Enter Number: "; cin >> num2; | |
int prime; |