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
<? | |
phpinfo(); |
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 <QtNetwork/QNetworkReply> | |
#include <iostream> | |
#include "Fetcher.h" | |
void Fetcher::get(QString url, std::function<void(QNetworkReply *)> callback) { | |
int id = m_id++; | |
QNetworkReply *reply = m_nam.get(QNetworkRequest(QUrl(url))); | |
m_replies.insert(id, reply); | |
connect(reply, &QNetworkReply::finished, this, [&, id, callback]() { |
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 pickle | |
def unpickle(file): | |
with open(file, 'rb') as fo: | |
dic = pickle.load(fo, encoding='bytes') | |
fo.close() | |
return dic | |