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
//BarChart.java - Jimmy Kurian | |
import java.util.ArrayList; | |
import java.awt.Graphics2D; | |
import java.awt.geom.Line2D; | |
import java.awt.geom.Point2D; | |
import java.awt.Rectangle; | |
public class BarChart | |
{ |
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
//Square.java - Jimmy Kurian | |
import java.util.Scanner; | |
public class Square | |
{ | |
//Constructs a n x n square filled with zeros. | |
public Square(int n) | |
{ |
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
%HelloWorld.pl - Jimmy Kurian | |
write('Hello, World!'), nl. |
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
;HelloWorld.scm - Jimmy Kurian | |
(begin | |
(display "Hello, World!") | |
(newline)) |
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
# FileIO.rb - Jimmy Kurian | |
print "Please enter a past-tense verb: " | |
verb = gets.chomp | |
print "Please enter a noun: " | |
noun = gets.chomp | |
print "Please enter a proper noun: " | |
prop_noun = gets.chomp | |
print "Please enter a an adverb: " | |
adv = gets.chomp |
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
# BasicIO.rb - Jimmy Kurian | |
print "Please enter a past-tense verb: " | |
verb = gets.chomp | |
print "Please enter a noun: " | |
noun = gets.chomp | |
print "Please enter a proper noun: " | |
prop_noun = gets.chomp | |
print "Please enter a an adverb: " | |
adv = gets.chomp |
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
!Car.trc - Jimmy Kurian | |
SET WINDOW 0,20,0,20 | |
SET COLOR 5 | |
BOX AREA 2,6,2,3 | |
BOX AREA 9,13,2,3 | |
BOX AREA 16,20,2,3 | |
SET COLOR 249 | |
PLOT LINES :0,5;20,5 | |
FLOOD 10,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
# BankAccount.py - Jimmy Kurian | |
class BankAccount(object): | |
def __init__(self, initial_balance=0): | |
self.balance = initial_balance | |
def deposit(self, amount): | |
self.balance += amount | |
def withdraw(self, amount): | |
self.balance -= amount | |
def overdrawn(self): |
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
#RegularExpressions.py - Jimmy Kurian | |
import re | |
for test_string in ['555-1212', 'ILL-EGAL']: | |
if re.match(r'^\d{3}-\d{4}$', test_string): | |
print test_string, 'is a valid US local phone number' | |
else: | |
print test_string, 'rejected' |
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
//CheckerBoard.java - Jimmy Kurian | |
import javax.swing.*; | |
import java.awt.Graphics; | |
import java.awt.Color; | |
public class CheckerBoard extends JFrame | |
{ | |
public void paint(Graphics g) |