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<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<time.h> | |
void Initial(char board[3][3]){ // Function to Initialize board with value 1,2,3....9 | |
int i,j,k = 1; | |
for(i=0;i<3;i++){ | |
for(j=0;j<3;j++){ | |
board[i][j] = '0'+k; |
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
package misc; | |
import java.util.Comparator; | |
import java.util.Map; | |
import java.util.TreeMap; | |
public class ArrayTools | |
{ | |
private static class ValueComparator<K , V extends Comparable<V>> implements Comparator<K> | |
{ |
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 java.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
public class HostSocket extends Thread { | |
private int port = 1234; | |
private Socket socket; | |
private DataInputStream inputStream; |
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 java.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.net.Socket; | |
import java.util.Scanner; | |
public class ClientSocket extends Thread { | |
protected Socket socket; // Socket to make connection between two system | |
protected DataInputStream dataInputStream; // InputStream to receive data | |
protected DataOutputStream dataOutputStream; // OutputStream to send data |
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 Foundation | |
// Swift All Operators | |
var x : Int = 10 | |
var y : Bool = false | |
// Arithmetic Operators | |
x = x + 10; println("X = \(x)") // (+) Operator example | |
x = x - 15; println("X = \(x)") // (-) Operator example |
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 Foundation | |
var x : Int = 55 | |
// If Else Example | |
if x > 50 { | |
println("IF BLOCK") | |
if(x > 60){ | |
println("NESTED IF BLOCK") | |
}else if x < 80 { |
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 Foundation | |
var names : [String] = ["Biriyan", "Chola batoara", "Zira Pani", "Lassi", "Firni", "Cha"] | |
// Different style for loop example | |
for n in names { | |
println(n) | |
} | |
for i in 0...3 { |
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
09-11-2015 |
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 <gloox/client.h> | |
#include <gloox/messagehandler.h> | |
using namespace gloox; | |
class Connect : public MessageHandler{ | |
public: | |
Connect(){ | |
JID jid("username@server_address/resource_name"); |
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
{url:'stun:stun01.sipphone.com'}, | |
{url:'stun:stun.ekiga.net'}, | |
{url:'stun:stun.fwdnet.net'}, | |
{url:'stun:stun.ideasip.com'}, | |
{url:'stun:stun.iptel.org'}, | |
{url:'stun:stun.rixtelecom.se'}, | |
{url:'stun:stun.schlund.de'}, | |
{url:'stun:stun.l.google.com:19302'}, | |
{url:'stun:stun1.l.google.com:19302'}, | |
{url:'stun:stun2.l.google.com:19302'}, |
OlderNewer