Skip to content

Instantly share code, notes, and snippets.

View nivomi's full-sized avatar

Nivomi nivomi

  • Terrible Ideas Dot Org
View GitHub Profile

Keybase proof

I hereby claim:

  • I am nivomi on github.
  • I am nivomi (https://keybase.io/nivomi) on keybase.
  • I have a public key whose fingerprint is 6C82 7B7A 9CD5 F7B0 4837 CD50 C0D0 0589 2322 F43B

To claim this, I am signing this object:

@nivomi
nivomi / ASnippet.java
Created May 30, 2012 00:27
Really bad GUI calculator
switch(op){
case 1:
str = CalcGUI.getDisp().split(" \\+ ",2);
try{
x = Double.parseDouble(str[0]);
y = Double.parseDouble(str[1]);
CalcGUI.setDisp(x+y);
}catch(java.lang.NumberFormatException e){}
break;
case 2: