This file contains hidden or 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
public class MatrixRational | |
{ | |
private Rational matrix [][] = new Rational[0][0]; //initialize it in case of weird errors | |
private Rational transpose [][] = new Rational[0][0]; | |
public MatrixRational(int size) | |
{ | |
matrix = new Rational[size][size]; | |
for (int i = 0; i < size; i++) |
This file contains hidden or 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
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.Scanner; | |
/** Simple /b/tard dictioanry | |
* @author mr-fool | |
* @version 0.o*/ | |
public class InternetDictionary { | |
public static void main(String[] args) { | |
/** | |
* @param Create a hasmap with an intial size of 10 and the default load factor*/ |
This file contains hidden or 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
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.Scanner; | |
import java.util.Map; | |
/** Simple /b/tard dictioanry | |
* @author mr-fool | |
* @version 0.0*/ | |
public class InternetDictionary { | |
public static void main(String[] args) { | |
/** |
This file contains hidden or 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
import java.net.Socket; | |
/** | |
* @author mr-fool | |
* @param a simple network tool*/ | |
public class SocketProxy extends Thread { | |
public static void main (String[] args) { | |
String address = args[0]; | |
int port = Integer.parseInt(args[1]); |
This file contains hidden or 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
import java.net.Socket; | |
import java.util.Scanner; | |
import java.net.InetAddress; | |
/** | |
* @author mr-fool | |
* @version 0.o | |
* @param a simple network tool*/ | |
public class SocketProxy extends Thread { | |
public static void main (String[] args) { | |
System.out.print("Please enter an valid ip address: "); |
This file contains hidden or 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
import java.net.Socket; | |
import java.util.Scanner; | |
import java.net.InetSocketAddress; | |
import java.net.Proxy; | |
import java.net.Proxy.Type; | |
/* Socket does not like HTTP proxy, SOCKS sometimes work */ | |
/** | |
* @author mr-fool |
This file contains hidden or 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
import java.net.Socket; | |
import java.util.Scanner; | |
import java.net.InetSocketAddress; | |
import java.net.Proxy; | |
import java.net.Proxy.Type; | |
/** | |
* @author mr-fool |
This file contains hidden or 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
#Tested using Python 3.3.0 | |
#Version 10 change from recursive to function to no-function | |
#Lucky number generator | |
#Limitation: | |
#if the inputs are within the range of the loops, the program will assume your inputs are correct | |
#Program crashs when the input is not integer | |
#Contains the maximum amount of days in a month | |
Max_Day=[31,28,31,30,31,30,31,31,30,31,30,31] | |
#Taking user input |
This file contains hidden or 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
/*Calculate the diameter,circumference and area of a circle | |
Using C pi*/ | |
/*Including Library*/ | |
#include <math.h> | |
#include <stdio.h> | |
int main (void) { | |
/*Declaring the variable*/ | |
int radius; |
This file contains hidden or 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
allFiles: draw.c | |
gcc -Wall draw.c -o draw.out -lm | |
clean: | |
rm *.o draw.out |
OlderNewer