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 / test.java
Created November 18, 2013 16:57
for Java 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;
@priyankahdp
priyankahdp / gist:7531257
Created November 18, 2013 16:56
for Java 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;
@priyankahdp
priyankahdp / gist:7531228
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;
@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;
@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 / 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 / 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 / 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);