Skip to content

Instantly share code, notes, and snippets.

View andreis's full-sized avatar

andreis

View GitHub Profile
Error during dispatching of java.awt.event.KeyEvent[KEY_PRESSED,keyCode=53,keyText=5,keyChar='∞',modifiers=Meta+Alt,extModifiers=Meta+Alt,keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0,extendedKeyCode=0x0] on frame0: [Lorg.jboss.forge.furnace.repositories.AddonRepository;
java.lang.ClassNotFoundException: [Lorg.jboss.forge.furnace.repositories.AddonRepository;
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.jboss.forge.proxy.ClassLoaderAdapterCallback.translateParameterTypes(ClassLoaderAdapterCallback.java:400)
at org.jboss.forge.proxy.ClassLoaderAdapterCallback.access$400(ClassLoaderAdapterCallback.java:31)
@andreis
andreis / gist:6050149
Created July 21, 2013 21:54
Error while trying to install an addon using the plugin
Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.util.EdtRunnable$1@6ba0b50e,notifier=null,catchExceptions=false,when=1374443600345] on sun.lwawt.macosx.LWCToolkit@33e5904c: java.lang.NullPointerException
java.lang.RuntimeException: java.lang.NullPointerException
at org.jboss.forge.plugin.idea.wizards.ForgeWizardStep.prepare(ForgeWizardStep.java:57)
at com.intellij.ui.wizard.WizardModel.prepareCurrentStep(WizardModel.java:173)
at com.intellij.ui.wizard.WizardModel.getCurrentStep(WizardModel.java:122)
at com.intellij.ui.wizard.WizardModel.getCurrentNavigationState(WizardModel.java:136)
at org.jboss.forge.plugin.idea.wizards.ForgeWizardModel.resetNavigationState(ForgeWizardModel.java:58)
at org.jboss.forge.plugin.idea.wizards.ForgeWizardModel.<init>(ForgeWizardModel.java:54)
at org.jboss.forge.plugin.idea.actions.ShowForgeMenuAction.openWizard(ShowForgeMenuAction.java:107)
at org.jboss.forge.plugin.idea.actions.ShowForgeMenuAction.access$000(Sh
Project currentProject = ProjectManager.getInstance().getOpenProjects()[0];
ArrayList<String> strings = new ArrayList<String>();
strings.add("abc");
strings.add("abcd");
strings.add("abd");
String initialText = "a";
Icon anIcon = new ImageIcon("res/images/forge_icon_13px.png");
TextFieldWithAutoCompletion<String> textFieldWithAutoCompletion =
TextFieldWithAutoCompletion.create(currentProject, strings, anIcon, true, initialText);
#include <stdio.h>
int i = (1 << 6) + 1; // 65 == 'A'
char *str;
int main()
{
for (str = "((((( ((((( \
((((( ((((| \
((((((((((((((((((((|)))))))| \
(((((((( (((( (|)))|((( \
@andreis
andreis / MAIG-battle-of-heslington
Created October 8, 2013 12:46
Brute-force generation of "fights" for MAIG/Unit 1: 'The Battle of Heslington'
#!/usr/local/bin/pypy
'''
RESULTS
========
6850 / 10276 wins, 6066 : [4, 4, 4, 4, 4]
6745 / 10276 wins, 5003 : [3, 4, 4, 4, 5]
6745 / 10276 wins, 5004 : [3, 4, 4, 5, 4]
6745 / 10276 wins, 5013 : [3, 4, 5, 4, 4]
#!/usr/local/bin/pypy
'''
RESULTS
========
6 / 64 : 684043 points [0, 7, 3]
5 / 64 : 680089 points [0, 6, 4]
7 / 64 : 679017 points [0, 8, 2]
8 / 64 : 670540 points [0, 9, 1]
#!/usr/local/bin/pypy
'''
RESULTS
========
63 / 64 : 603228 points (10, 0, 0)
61 / 64 : 479408 points [9, 0, 1]
5 / 64 : 477912 points [0, 6, 4]
4 / 64 : 477270 points [0, 5, 5]
An open letter to the media, by Anonymous:
Following the Million Mask March organized by Anonymous, the U.K. based news website The Telegraph published an article titled, “Anonymous have been exposed as hypocrites. Watch them try to wiggle their way out of it.” This smear refers to the well-known fact that Warner Bros. owns the rights to our mask, profits from its sale, and that the masks themselves are produced in developing nations.
According to the article, authored by New Statesman staffer Martha Gill, the conditions in a Brazil factory that produces Guy Fawkes masks are “unpleasant” for the workers. Gill doesn’t say how she knows the conditions are unpleasant, just that they are.
In her article, she doesn’t claim to have spoken with the workers and she doesn’t provide the name of the factory in which they’re manufactured. On Twitter Gill asks, “So those V for Vendetta masks are made in sweatshops. Does this matter?” Later when someone challenges her on the issue, she says, “That’s the word,” essenti
Process: Cave Story+ [44010]
Path: /Users/USER/Library/Application Support/Steam/*/Cave Story+.app/Contents/MacOS/Cave Story+
Identifier: com.nicalis.cavestory
Version: 1.1 (1.1)
Code Type: X86 (Native)
Parent Process: launchd [140]
Responsible: Cave Story+ [44010]
User ID: 501
Date/Time: 2013-11-16 18:11:34.527 +0000
1 Decembrie - mancare
Cascaval
£4.12 480g Rucar http://www.albinuta.co.uk/Lactate/Cascaval/Therezia-Cascaval-Rucar-480g/prod_265.html
£7.00 850g Afumat http://www.albinuta.co.uk/Lactate/Cascaval/Therezia-Cascaval-afumat-460g/prod_246.html
Branzeturi
£6.00 400g Feta http://www.albinuta.co.uk/Lactate/Telemea-Branza-de-burduf/LaDorna-Feta-400g/prod_240.html