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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:ui="http://java.sun.com/jsf/facelets" | |
xmlns:h="http://java.sun.com/jsf/html" | |
xmlns:f="http://java.sun.com/jsf/core" | |
xmlns:c="http://java.sun.com/jsp/jstl/core" | |
xmlns:a4j="http://richfaces.org/a4j" | |
xmlns:rich="http://richfaces.org/rich"> | |
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
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |
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
** | |
* Inception | |
* | |
* @author Babji, Chetty | |
*/ | |
public class Inception { | |
public static void main(String[] args) { | |
Inception inception = new Inception(); | |
inception.dream(0); | |
} |
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
package com.bchetty.gcj2014; | |
import java.util.Iterator; | |
import java.util.TreeSet; | |
/** | |
* GCJ 2014 - 'Deceitful War' problem solution | |
* | |
* @author Babji, Chetty | |
*/ |
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
package com.bchetty.gcj2014; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* GCJ 2014 - Magic Trick Problem | |
* | |
* @author Babji, Chetty | |
*/ |
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
import java.io.IOException; | |
/** | |
* Simple Java program to execute Mac-OS command (For Ex: To open a Finder Window) through a Java program. | |
* | |
* @author Babji, Chetty | |
*/ | |
public class Run { | |
public static void main(String[] params) throws IOException { | |
Runtime.getRuntime().exec(new String[] {"open", params[0]}); |
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
import com.google.caliper.Param; | |
import com.google.caliper.Runner; | |
import com.google.caliper.SimpleBenchmark; | |
import java.util.HashMap; | |
/** | |
* Simple Caliper Benchmark test program. | |
* | |
* @author Babji Prashanth, Chetty | |
*/ |
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
public class SpiralWalking { | |
public static void main(String[] args) { | |
SpiralWalking sw = new SpiralWalking(); | |
String res[][] = sw.walkSpirally(10,10); | |
for(int i=0;i<10;i++) { | |
System.out.println(); | |
for(int j=0;j<10;j++) { | |
System.out.print(res[i][j] + " "); | |
} |