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 <winsock2.h> //winsock | |
#include <windns.h> //DNS api's | |
#include <stdio.h> //standard i/o | |
#include <winerror.h> | |
#include <locale> | |
#include <clocale> | |
//Usage of the program | |
void Usage(char *progname) { | |
fprintf(stderr,"Usage\n%s -n [HostName|IP Address] -t [Type] -s [DnsServerIp]\n",progname); |
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 <iostream> | |
#include <thread> | |
#include <chrono> | |
using namespace std; | |
int main() | |
{ | |
setlocale( LC_ALL, "ru_RU.UTF-8"); | |
for (int i = 0; i< 10; ++i) { |
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
FROM postgres:9.4 | |
VOLUME /bk | |
COPY . /bk/ | |
RUN mv /bk/init.sh /docker-entrypoint-initdb.d && chmod +x /docker-entrypoint-initdb.d/init.sh |
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
// With reference to the android.app.IntentService of the Android framework | |
// Member variable | |
private volatile Looper mServiceLooper; | |
private volatile ServiceHandler mServiceHandler; | |
// Handler Class | |
private final class ServiceHandler extends Handler { | |
public ServiceHandler(Looper looper) { | |
super(looper); |