Skip to content

Instantly share code, notes, and snippets.

View 4kochi's full-sized avatar

Andreas Krummsdorf 4kochi

View GitHub Profile
@4kochi
4kochi / extenstions
Last active March 29, 2017 19:41
My Visual Studio Code Settings
Azure Resource Manager Tools
Document This
editorconfig
eslint
htmlhint
Latest TypeScript and JavaScript Grammar
JavaScript Atom Grammar
tslint
{
"attr-lowercase": true,
"attr-no-duplication": true,
"attr-value-double-quotes": true,
"attr-value-not-empty": false,
"attr-unsafe-chars": true,
"doctype-first": false,
"doctype-html5": false,
"head-script-disabled": true,
"href-abs-or-rel": false,
@4kochi
4kochi / gist:d5c0d93497376a3afe889794ad6d1daa
Last active September 15, 2017 09:43
Random JS/HTML/CSS stuff
function setContextMenuPostion(event, contextMenu) {
var mousePosition = {};
var menuPostion = {};
var menuDimension = {};
menuDimension.x = contextMenu.outerWidth();
menuDimension.y = contextMenu.outerHeight();
mousePosition.x = event.pageX;
mousePosition.y = event.pageY;