This file contains hidden or 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
/* This program is to explain how to schedule tasks in C++ | |
* | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <time.h> | |
#include <iomanip> | |
#include <chrono> | |
#include <thread> | |
#include <unistd.h> |
This file contains hidden or 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 | |
r = requests.get(r'http://jsonip.com') | |
ip= r.json()['ip'] | |
print 'Your IP is', ip |