Skip to content

Instantly share code, notes, and snippets.

@FatalCatharsis
FatalCatharsis / gist:5889077ce28deae8656d03090bcf81af
Created December 28, 2016 06:27
D Language plugin stacktrace #1
Write access is allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not "any"). See TransactionGuard documentation for details.
current modality=ModalityState.NON_MODAL
known modalities={ModalityState:com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog0,440,88,1040x864,invalid,hidden,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Project Structure,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=,rootPaneCheckingEnabled=true]=true, ModalityState:com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog1,656,449,608x141,invalid,hidden,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Open Project,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=,rootPaneCheckingEnabled=true]=true, ModalityState.NON_MODAL=true, ModalityState:com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog0,440,88,1040x864,invalid,hidden,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Project Structure,defaultCl
@FatalCatharsis
FatalCatharsis / test.cpp
Last active July 28, 2021 15:03
A poco http example
Poco::JSON::Object obj;
obj.set("name", "blah");
obj.set("language", "english");
Poco::URI uri("http://the-uri-you-want-to-request-from");
std::string path(uri.getPathAndQuery());
if (path.empty()) path = "/";
HTTPClientSession session(uri.getHost(), uri.getPort());
HTTPRequest request(HTTPRequest::HTTP_POST, path, HTTPMessage::HTTP_1_1);
@FatalCatharsis
FatalCatharsis / gist:989734c390de8a61e853
Created October 14, 2014 04:48
Plugin (super alpha)
'use strict'
###*
# @ngdoc service
# @name webvisApp.droids
# @description
# # droids
# Service in the webvisApp.
###
webvisApp = angular.module('webvisApp')