Skip to content

Instantly share code, notes, and snippets.

@wtfuii
wtfuii / SkeletonServlet.java
Created March 27, 2017 06:31
Skeleton for an easesolutions codestyle Servlet file
package com.easesolutions.jira.plugin.mailclient.servlet;
import com.atlassian.jira.user.util.UserManager;
import com.atlassian.plugin.webresource.UrlMode;
import com.atlassian.plugin.webresource.WebResourceUrlProvider;
import com.atlassian.sal.api.auth.LoginUriProvider;
import com.atlassian.templaterenderer.TemplateRenderer;
import com.easesolutions.jira.plugin.mailclient.model.service.PermissionAccessService;
import com.easesolutions.jira.plugin.mailclient.util.LoggerHelper;
import com.easesolutions.jira.plugin.mailclient.util.ProjectPartsHelper;
@wtfuii
wtfuii / skeleton.js
Last active March 27, 2017 04:46
Skeleton for an easesolutions codestyle JS file
// ensure that the namespace is created
if (typeof easesolutions !== 'object')
easesolutions = {};
if (typeof easesolutions.productname !== 'object')
easesolutions.productname = {};
// initialize instance variables
easesolutions.productname.fileName = function () {
this.url_get_stuff = '';
@wtfuii
wtfuii / shared.state.service.ts
Created October 7, 2016 13:25
Sharing state between Angular 2 components
@Injectable()
export class AppStateService {
constructor() {
this.appState = new Subject<AppState>();
}
state: AppState = new AppState();
appState: Subject<AppState>;
@wtfuii
wtfuii / ts-compiler-host-impl.js
Created July 13, 2016 11:44
TypeScript 1.8 compiler host fix for Jetbrains IntelliJ Idea 14.1.7
var ts;
var options;
var typeScriptServiceDirectory;
var typeScriptServicePath;
var sessionId;
var logDebugData = true;
var logFileContent = false;
var sys;
var store;
var emitFilesArray;