Skip to content

Instantly share code, notes, and snippets.

run else elsif enter
@kcelestine
kcelestine / calendar.py
Created June 20, 2014 14:21
Zellers Congruence Command Line Calendar
import sys
from datetime import date
def zeller(day, month, year):
if month==1 or month==2:
month+=12
year-=1
h = ( ( day +( (month+1) * 26 // 10)+ year +( year // 4)+ 6 * (year // 100)+ (year // 400)) % 7 )+6
return h%7
puts "Welcome to Khadijah's homework"
loop do
puts "Enter (1)\tList all trains"
puts "Enter (2)\tView Stations for single train line"
puts "Enter (Q)\tQuit and exit"
print "Please choose an option: "
choice = gets.chomp
if choice == "1"
puts "Welcome to Khadijah's homework"
loop do
puts "Enter (L)/tThe (L) Train"
puts "Enter (N)/tThe (N) Train"
puts "Enter (S)/tThe (S)ix Train"
puts "Enter (Q)/tQuit and exit"
print "Please choose an option: "
choice = gets.chomp
puts "Welcome to Khadijah's homework"
puts "The (L) Train"
puts "The (N) Train"
puts "The (S)ix Train"
print "Please choose an option: "
choice = gets.chomp
puts "Welcome to Khadijah's homework"
puts "The (L) Train"
puts "The (N) Train"
puts "The (S)ix Train"
print "Please choose an option: "
choice = gets.chomp
@kcelestine
kcelestine / index.html
Created April 29, 2014 16:17
About Me Page
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Khadijah Camille</title>
<meta name="author" content="Khadijah Camille Celestine" />
<meta name="description" content="My about me page for General Assembly's WDI" />
<meta name="keywords" content="" />
@kcelestine
kcelestine / PasswordGenerator.java
Created April 17, 2014 19:25
Code for Internship Consideration
import java.util.Random;
import java.util.Scanner;
public class PasswordGenerator {
Random rand = new Random();
char numbers[] = "1234567890".toCharArray();
char lower[] = "abcdefghijklmnopqrstuvwxyz".toCharArray();
char upper[] = "abcdefghijklmnopqrstuvwxyz".toUpperCase().toCharArray();
String choices = generateChoices();
import java.util.Random;
import java.util.Scanner;
public class PasswordGenerator {
Random rand = new Random();
char numbers[] = "1234567890".toCharArray();
char lower[] = "abcdefghijklmnopqrstuvwxyz".toCharArray();
char upper[] = "abcdefghijklmnopqrstuvwxyz".toUpperCase().toCharArray();
@kcelestine
kcelestine / Stewie.java
Created April 16, 2014 03:43
Tutoring Joshua
public class Stewie {
public static void main(String [] args) {
System.out.println("//////////////////////");
System.out.println("|| Victory is mine! ||");
System.out.println("\\\\\\\\\\\\\\\\\\\\\\");
}
}