View java.gitignore
#---------------------------------------# | |
# Project Ignores # | |
#---------------------------------------# | |
# Maven | |
target/ | |
pom.xml.tag | |
pom.xml.releaseBackup | |
pom.xml.versionsBackup | |
pom.xml.next |
View JenkinsAllJobsWorkspaceCleanup
import hudson.model.* | |
// For each project | |
for(item in Hudson.instance.items) { | |
// check that job is not building | |
if(!item.isBuilding()) { | |
println("Wiping out workspace of job "+item.name) | |
item.doDoWipeOutWorkspace() | |
} | |
else { | |
println("Skipping job "+item.name+", currently building") |
View BS3-MediaQueries-Template.css
/* Large desktops and laptops */ | |
@media (min-width: 1200px) { | |
} | |
/* Landscape tablets and medium desktops */ | |
@media (min-width: 992px) and (max-width: 1199px) { | |
} |
View MathApp.java
package com.chetty.client; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import com.chetty.module.MathModule; | |
import com.google.inject.Guice; | |
import com.google.inject.Injector; | |
import com.google.inject.grapher.GrapherModule; |
View PQueueTest.java
import com.chetty.algos.data.Patient; | |
import java.util.Comparator; | |
import java.util.PriorityQueue; | |
/** | |
* | |
* @author Babji Prashanth, Chetty | |
*/ | |
public class PQueueTest { | |
public static void main(String[] args) { |
View Patient.java
/** | |
* | |
* @author Babji P, Chetty | |
*/ | |
public class Patient { | |
private int id; | |
private String name; | |
private boolean emergencyCase; | |
public Patient(int id, String name, boolean emergencyCase) { |
View PQTest.java
import java.util.Comparator; | |
import java.util.PriorityQueue; | |
/** | |
* | |
* @author Babji P, Chetty | |
*/ | |
public class PQTest { | |
public static void main(String[] args) { | |
PriorityQueue<Integer> pQueue = new PriorityQueue<Integer>(10, new Comparator<Integer>() { |
View Series.java
package com.bchetty.charts.model; | |
import java.util.List; | |
/** | |
* | |
* @author Babji Prashanth, Chetty | |
*/ | |
public class Series { | |
private String name; |
View ChartController.java
package com.bchetty.charts.controller; | |
import com.bchetty.charts.model.Series; | |
import com.google.gson.Gson; | |
import java.text.SimpleDateFormat; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; | |
/** |
NewerOlder