Skip to content

Instantly share code, notes, and snippets.

View bdshadow's full-sized avatar

Dmitrii Bocharov bdshadow

View GitHub Profile
DartReturnType returnType = PsiTreeUtil.getChildOfType(component, DartReturnType.class);
DartType dartType = PsiTreeUtil.getChildOfType(component, DartType.class);
String typeText = returnType == null ? DartPresentableUtil.buildTypeText(component, dartType, null) : DartPresentableUtil.buildTypeText(component, returnType, null);
@bdshadow
bdshadow / Python SimpleHTTPServer with SSL
Created April 28, 2018 10:33 — forked from rozifus/Python SimpleHTTPServer with SSL
Python SimpleHTTPServer with SSL
# useful for running ssl server on localhost
# which in turn is useful for working with WebSocket Secure (wss)
# copied from http://www.piware.de/2011/01/creating-an-https-server-in-python/
@bdshadow
bdshadow / gist:6dfb632554e0c0152f7e17fc34ee3c59
Created December 8, 2016 14:45
Maven integration test failure
java.lang.AssertionError: The following shells remained open [Preferences]
at org.junit.Assert.fail(Assert.java:88)
at org.jboss.reddeer.junit.extension.after.test.impl.CloseAllShellsExt.run(CloseAllShellsExt.java:79)
at org.jboss.reddeer.junit.extension.after.test.impl.CloseAllShellsExt.runAfterTestClass(CloseAllShellsExt.java:59)
at org.jboss.reddeer.junit.internal.runner.statement.RunIAfterClassExtensions.evaluate(RunIAfterClassExtensions.java:73)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.jboss.reddeer.junit.internal.runner.RequirementsRunner.run(RequirementsRunner.java:153)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)