Skip to content

Instantly share code, notes, and snippets.

View scottfrazer's full-sized avatar
👋

Scott Frazer scottfrazer

👋
View GitHub Profile
import java.net.*;
import java.io.*;
public class serve
{
public static void main(String args[])
{
try
{
ServerSocket server = new ServerSocket( 80 );
import unittest
class Stack:
stack = []
size = 0
def push(self, i):
self.stack.append(i)
self.size += 1
pass
import java.util.Scanner;
import java.io.File;
import javax.swing.JOptionPane;
import javazoom.jl.player.Player;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
public class mp3
{
public static void main(String[] args)
import java.util.Scanner;
public class test
{
public static void main(String[] args)
{
String input;
System.out.println("Hello, welcome to the forum. Input your post");
Scanner k = new Scanner(System.in);
@scottfrazer
scottfrazer / quiz
Created March 26, 2011 03:34
This is your quiz, Chris!
-----------------------
-- Chris's Unix Quiz --
-----------------------
0) Install the GNU wget utility with homebrew. The
homebrew executable is called 'brew' and it's in your
path.
1) The source code for Python 3.2 is located at:
import java.util.Scanner;
public class CS1_Frazer_X8_1
{
public static void main(String[] args)
{
String Input;
Scanner keyboard = new Scanner(System.in);
while(1) {
/**
* Write a program to read a list of nonnegative integers
* and to display the largest integer, the smallest integer,
* and the average of all integers.
* The user indicates the end of the input by
* entering a negative sentinel value that is not used in
* finding the largest, smallest, and average values.
* The average value should be a value type double,
* so it can be computed with it's fractional part.
*
public class CS1_Frazer_X11_1
{
public static void main(String[] args)
{
int x; //the number the user enters for how large the triangle will be.
int y; // the number that determines how many astericks in that row.
System.out.println("Hello, please enter a number from one to fifty.");
Scanner k = new Scanner(System.in);
x = k.nextInt();
int asteriskCount = 0;
import java.util.Scanner;
public class Derp
{
private int herp(int x, int y)
{
int q;
q = x+y;
return q;
}
import java.util.Scanner;
public class Derp
{
public Derp()
{
System.out.println("I get called when you do 'new Derp()'");
}
private int herp(int x, int y)