Skip to content

Instantly share code, notes, and snippets.

View GUIpsp's full-sized avatar

Guilherme Espada GUIpsp

View GitHub Profile
@GUIpsp
GUIpsp / Main.java
Created November 28, 2013 21:33
Java commentkiller
package net.guipsp.commentkiller;
import java.io.*;
public class Main {
public static final void main(String[] args) {
try {
stripComments(new FileReader("in.java"), new FileWriter("out.java"));
} catch (Throwable t) {
@GUIpsp
GUIpsp / gist:5631574
Created May 22, 2013 22:50
Just_defy list
[u'frapalino',
u'OneNudeRobot',
u'blunnettsquare',
u'sterlingsilver6',
u'captaincannibal',
u'AwayNotAFK',
u'Luke819',
u'Catharsis1394',
u'QwertyuiopThePie',
u'pancakeninja27',
@GUIpsp
GUIpsp / gist:5630892
Created May 22, 2013 21:03
In Memoriam list
[u'Rotlaus',
u'jeffcityjon',
u'ipha',
u'dotPHUNK',
u'ledd',
u'M4ntr1d',
u'MrBradd',
u'CodeRedOnly',
u'Zakonichiban',
u'TheCodexx',
@GUIpsp
GUIpsp / gist:5535988
Created May 7, 2013 20:49
/r/Mindcrack combined flair stats
Total flair users: 11931
- : 186 (1.56%)
specialmoderator - Chart Guy: 1 (0.01%)
fanserver - Mianthadore: 1 (0.01%)
- Team Undecided: 107 (0.90%)
specialzisteau - Zisteau: 1 (0.01%)
fanserver - OmegaRainbow: 1 (0.01%)
pyrao - Team Pyropuncher: 109 (0.91%)
specialwctg2 - WCT - Teams 2nd: 4 (0.03%)
specialpause - Pause: 1 (0.01%)
@GUIpsp
GUIpsp / gist:5535847
Created May 7, 2013 20:28
/r/Mindcrack flair text stats
Total flair users: 11930
: 186 (1.56%)
Team Just_Defy: 11 (0.09%)
Aubron: 1 (0.01%)
Iggy: 1 (0.01%)
Mianthadore: 1 (0.01%)
Team Mhykol: 41 (0.34%)
Team Baj: 153 (1.28%)
WCT - Teams 1st: 4 (0.03%)
Team Single Malt Scotch: 465 (3.90%)
@GUIpsp
GUIpsp / gist:5535757
Created May 7, 2013 20:18
/r/mindcrack flair stats
Total flair users: 11928
: 294 (2.46%)
nancydrew: 263 (2.20%)
specialguude: 1 (0.01%)
pyrao: 109 (0.91%)
avidya: 73 (0.61%)
specialadlington: 1 (0.01%)
bdoubleo: 371 (3.11%)
kurtzis: 466 (3.91%)
specialkurt: 1 (0.01%)
import string
lowercase=" "+string.lowercase
def countPatterns(pattern, string):
rep=string.replace(pattern, "L")
return len(rep)
def handleOverflow(listt, current):
if listt[current] == len(lowercase)-1:
if len(listt) == current+1:
listt.append(1)
else:
public Applet createApplet() throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
Class<?> appletClass = classLoader
.loadClass("net.minecraft.client.MinecraftApplet");
try
{
Class<?> mcClass = classLoader.loadClass("net.minecraft.client.Minecraft");
Field mcDirField = null;