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 socket, threading | |
lock = threading.Lock() | |
clients = [] #list of clients connected | |
class TelnetServer(threading.Thread): | |
def __init__(self, (sock, address)): | |
threading.Thread.__init__(self) | |
self.socket = sock | |
self.address = address |
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/env python3 | |
from subprocess import call | |
import tempfile | |
import os.path | |
import socket | |
import sys | |
import mimetypes | |
from netifaces import interfaces, ifaddresses, AF_INET | |
types_map = { |
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 os | |
import re | |
from getpass import getpass | |
from requests import Session | |
STATUS_PAGE = "http://www.spoj.com/status/{problem},{username}/" | |
MYACCOUNT_PAGE = "http://www.spoj.com/myaccount/" | |
SOLUTION_PAGE = "http://www.spoj.com/files/src/save/{sol_id}" | |
HOME_PAGE = "https://www.spoj.com/" |
This file has been truncated, but you can view the full file.
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
database = [{'code': u'ABA12B', u'Resource': u'Own problem', 'users': u'34', u'Cluster': u'Cube (Intel Pentium G860 3GHz)', u'Added by': u'Kashyap Krishnakumar', 'name': u'String Factorization!', u'Languages': u'All except: SCM chicken', u'Time limit': u'0.073s-0.184s', u'Source limit': u'50000B', u'Memory limit': u'1536MB', u'Date': u'2012-01-10', 'id': u'10376', 'accuracy': u'11.04'}, | |
{'code': u'ABA12C', u'Resource': u'Own problem', 'users': u'367', u'Cluster': u'Cube (Intel Pentium G860 3GHz)', u'Added by': u'Kashyap Krishnakumar', 'name': u'Buying Apples!', u'Languages': u'All except: SCM chicken', u'Time limit': u'0.148s', u'Source limit': u'50000B', u'Memory limit': u'1536MB', u'Date': u'2012-01-13', 'id': u'10394', 'accuracy': u'34.80'}, | |
{'code': u'ABA12D', u'Resource': u'Own problem', 'users': u'1179', u'Cluster': u'Cube (Intel Pentium G860 3GHz)', u'Added by': u'Kashyap Krishnakumar', 'name': u'Sum of divisors!', u'Languages': u'All except: ASMGCC C++14 COB GROOVY NODEJS PYPY PYTH 3.2.3 n PY3.4 SCM c |
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
378||Size Contest|SIZECON|7254|52.92 | |
53||Kamil|KAMIL|4311|49.94 | |
270||Digits of Pi|PIVAL|4094|65.82 | |
314||Digits of e|EVAL|2022|68.13 | |
1423||Digits of SQRT(2)|SQRT2|1945|64.84 | |
919||Prime checker|PRIC|1323|71.91 | |
3947||Brainf F##k Writing|BFWRITE|1196|76.51 | |
11746||Sum the Series|SUMUP|1082|61.36 | |
127||Johnny Goes Shopping|JOHNNY|968|65.73 | |
5842||Polybius square|POLYBIUS|875|61.18 |
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
James Bond - 001 - Casino Royale - Ian Fleming.epub | |
James Bond - 002 - Live and Let Die - Ian Fleming.epub | |
James Bond - 003 - Moonraker - Ian Fleming.epub | |
James Bond - 004 - Diamonds Are Forever - Ian Fleming.epub | |
James Bond - 005 - From Russia with Love - Ian Fleming.epub | |
James Bond - 006 - Doctor No - Ian Fleming.epub | |
James Bond - 007 - Goldfinger - Ian Fleming.epub | |
James Bond - 008 - For Your Eyes Only - Ian Fleming.epub | |
James Bond - 009 - Thunderball - Ian Fleming.epub | |
James Bond - 010 - The Spy Who Loved Me - Ian Fleming.epub |
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
set ns [new Simulator] | |
set f [open out.tr w] | |
set nf [open out.nam w] | |
$ns trace-all $f | |
$ns namtrace-all $nf | |
proc finish {} { | |
global f nf ns | |
$ns flush-trace |
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
## ☐ ☑ ☒ | |
☐ enable partner repositories | |
☐ install y-ppa-manager | |
☐ % sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager | |
☐ % sudo apt-get update | |
☐ % sudo apt-get install y-ppa-manager | |
☐ media | |
☐ install vlc |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define usingcincout ios::sync_with_stdio(0);cin.tie(0); | |
template <class T> | |
void gint(T& n) { | |
n = 0; | |
int sign=1; | |
register char c=0; | |
while(c<33) |
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
/* | |
Author : eightnoteight | |
website : eightnoteight.wordpress.com | |
*/ | |
int isalnum(char a){ | |
return (a>='A'&&a<='Z')||(a>='a'&&a<='z')||(a>='0'&&a<='9'); | |
} | |
int isalpha(char a){ | |
return (a>='A'&&a<='Z')||(a>='a'&&a<='z'); | |
} |
NewerOlder