Skip to content

Instantly share code, notes, and snippets.

View kanerogers's full-sized avatar
📹
Reticulating splines

Kane Rogers-Wong kanerogers

📹
Reticulating splines
View GitHub Profile
public class GenericSimpleCalcFactoryFactory {
class SimpleCalcFactory {
class SimpleCalc {
double number = Integer.parseInt(args[0]);
if (number < 0){
System.out.println(Math.pow(number, 2) + (number/2));
return;
}
@kanerogers
kanerogers / fibbonaci.io
Created October 25, 2012 10:55
Fibbonaci sequence finder in Io
main := Object clone
main fb := method(num,
i := 1
last := 0
fib := 0
current := 0
i println
while(fib != num,
fib = fib + 1