Skip to content

Instantly share code, notes, and snippets.

View priyankahdp's full-sized avatar
💭
Everything changes, nothing remains without change

Priyanka Kulathilaka priyankahdp

💭
Everything changes, nothing remains without change
View GitHub Profile
@priyankahdp
priyankahdp / ContactController.java
Created October 24, 2012 02:20
JqPlot charts with Spring MVC on Maven
//Method Only
@SuppressWarnings("rawtypes")
@RequestMapping(value = "/cityGridView", method = RequestMethod.GET)
public @ResponseBody
Object[] showLineChart(Map<String, Object> map, HttpServletRequest request,
HttpServletResponse response) {
List<MapTable> list = contactService.fin();
Object[] rows = new Object[list.size()];
int i = 0;
@priyankahdp
priyankahdp / LinkedListDemo
Created January 23, 2013 17:12
LinkedListDemo for find the all prime numbers within the 0 and entered maximum number
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
public class LinkedListDemo {
public static void main(String[] args) {
System.out.println("Primes : ");
@priyankahdp
priyankahdp / LinkedListDemo
Created January 23, 2013 17:12
LinkedListDemo for find the all prime numbers within the 0 and entered maximum number
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
public class LinkedListDemo {
public static void main(String[] args) {
System.out.println("Primes : ");
@priyankahdp
priyankahdp / gist:4610251
Created January 23, 2013 17:14
LinkedListDemo
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
public class LinkedListDemo {
public static void main(String[] args) {
System.out.println("Primes : ");
Scanner console = new Scanner(System.in);
@priyankahdp
priyankahdp / gist:4610254
Created January 23, 2013 17:14
LinkedListDemo
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
public class LinkedListDemo {
public static void main(String[] args) {
System.out.println("Primes : ");
Scanner console = new Scanner(System.in);
@priyankahdp
priyankahdp / bpl.py
Created March 25, 2013 06:48
Plantation Project
from openerp.osv import fields, osv
import random
class bpl_officer_registration(osv.osv):
_name = "bpl.officer"
_description = "Officer registration details"
_columns = {
'bpl_company_id':fields.many2one('bpl.company.n.registration', 'Company', help='Company'),
'bpl_estate_id':fields.many2one('bpl.estate.n.registration', 'Estate', help='Estate'),
'nic_no': fields.char('NIC No', size=32, help='NIC No'),
@priyankahdp
priyankahdp / bpl.py
Created March 25, 2013 06:48
Plantation Project
from openerp.osv import fields, osv
import random
class bpl_officer_registration(osv.osv):
_name = "bpl.officer"
_description = "Officer registration details"
_columns = {
'bpl_company_id':fields.many2one('bpl.company.n.registration', 'Company', help='Company'),
'bpl_estate_id':fields.many2one('bpl.estate.n.registration', 'Estate', help='Estate'),
'nic_no': fields.char('NIC No', size=32, help='NIC No'),
@priyankahdp
priyankahdp / bpl.py
Created March 25, 2013 06:48
Plantation Project
from openerp.osv import fields, osv
import random
class bpl_officer_registration(osv.osv):
_name = "bpl.officer"
_description = "Officer registration details"
_columns = {
'bpl_company_id':fields.many2one('bpl.company.n.registration', 'Company', help='Company'),
'bpl_estate_id':fields.many2one('bpl.estate.n.registration', 'Estate', help='Estate'),
'nic_no': fields.char('NIC No', size=32, help='NIC No'),
@priyankahdp
priyankahdp / bpl.py
Created March 25, 2013 06:49
Plantation Project Module
from openerp.osv import fields, osv
import random
class bpl_officer_registration(osv.osv):
_name = "bpl.officer"
_description = "Officer registration details"
_columns = {
'bpl_company_id':fields.many2one('bpl.company.n.registration', 'Company', help='Company'),
'bpl_estate_id':fields.many2one('bpl.estate.n.registration', 'Estate', help='Estate'),
'nic_no': fields.char('NIC No', size=32, help='NIC No'),
@priyankahdp
priyankahdp / gist:7531224
Created November 18, 2013 16:55
For Blog
public class TestMain {
public static void main(String[] args) {
boolean bl=true;
byte b=10;
short s=54;
int i=150;
long l=125L;
float f=32.5f;
double d=99.45;