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.*; | |
import java.net.*; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: vanji | |
* Date: 5/17/13 | |
* Time: 9:31 AM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
public class Client{ |
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.*; | |
import java.net.*; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: vanji | |
* Date: 5/17/13 | |
* Time: 9:31 AM | |
*/ | |
public class Server | |
{ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
<script type="text/javascript"> | |
var origin = "Colombo, Srilanka", | |
destination = "Stockholm, Sweden", | |
service = new google.maps.DistanceMatrixService(); | |
service.getDistanceMatrix( |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<h1><script language="JavaScript"> | |
TargetDate = "12/02/2013 8:40 AM"; | |
BackColor = "palegreen"; | |
ForeColor = "navy"; | |
CountActive = true; | |
CountStepper = -1; |
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
<clustering class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent" | |
enable="true"> | |
<parameter name="AvoidInitiation">true</parameter> | |
<parameter name="membershipScheme">multicast</parameter> | |
<parameter name="domain">wso2.carbon.domain</parameter> | |
<parameter name="mcastPort">45564</parameter> | |
<parameter name="mcastTTL">100</parameter> | |
<parameter name="mcastTimeout">60</parameter> | |
<parameter name="localMemberHost">box1.vanji.com</parameter> |
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 io | |
pram ="""<?xml version="1.0" encoding="UTF-8"?> | |
<proxy xmlns="http://ws.apache.org/ns/synapse" | |
name="vfs_{0}" | |
transports="https,http" | |
statistics="disable" | |
trace="disable" | |
startOnLoad="true"> | |
<target> | |
<inSequence> |
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 os, sys | |
for i in range(1001, 1500): | |
newpath = ((r'/home/vanji/Work/VFS/Out/client_%s-test') % (i)) | |
if not os.path.exists(newpath): os.makedirs(newpath) |
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
<property name="propertyA" value="'abc'"/> | |
<log level="custom"> | |
<property name="propertyA" expression="get-property('propertyA')"/> | |
</log> | |
<property name="propertyB" value="'abc'"/> | |
<log level="custom"> | |
<property name="propertyB" expression="get-property('propertyB')"/> | |
</log> | |
<property name="propertyCompare" expression="get-property('propertyA') = get-property('propertyB')"/> | |
<log level="custom"> |
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
<api name="UserProfileMgtRestServices" context="/UserProfileMgtRestServices"> | |
<resource methods="GET" uri-template="/getUserProfiles/{userId}"> | |
<inSequence> | |
<payloadFactory media-type="xml"> | |
<format> | |
<mgt:getUserProfiles xmlns:mgt="http://mgt.profile.user.identity.carbon.wso2.org"> | |
<mgt:username>$1</mgt:username> | |
</mgt:getUserProfiles> | |
</format> |