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
# | |
# Sample nginx.conf optimized for EC2 c1.medium to xlarge instances. | |
# Also look at the haproxy.conf file for how the backend is balanced. | |
# | |
user "nginx" "nginx"; | |
worker_processes 10; | |
error_log /var/log/nginx_error.log info; |
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
protected void exitByBackKey() { | |
AlertDialog alertbox = new AlertDialog.Builder(this) | |
.setMessage("Do you want to exit application?") | |
.setPositiveButton("Yes", new DialogInterface.OnClickListener() { | |
// do something when the button is clicked | |
public void onClick(DialogInterface arg0, int arg1) { | |
finish(); |
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
#include <iostream> | |
#include <cstdio> | |
#include <algorithm> | |
#include <cstring> | |
#include <string> | |
#include <cctype> | |
#include <stack> | |
#include <queue> | |
#include <list> | |
#include <vector> |
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
#include <iostream> | |
#include <cstdio> | |
#include <algorithm> | |
#include <cstring> | |
#include <string> | |
#include <cctype> | |
#include <stack> | |
#include <queue> | |
#include <list> | |
#include <vector> |