Skip to content

Instantly share code, notes, and snippets.

@ssmooncoder
ssmooncoder / custom-shortcuts.js
Last active August 14, 2020 16:42
Draw.io Custom Shortcuts
mxGraph.prototype.enterStopsCellEditing = true;
Graph.prototype.isZoomWheelEvent = function(evt) { return false; };
// Select nextPage and previousPage
EditorUi.prototype.onKeyDown = function(evt) {
var graph = this.editor.graph;
var directions = {37: mxConstants.DIRECTION_WEST, 38: mxConstants.DIRECTION_NORTH, 39: mxConstants.DIRECTION_EAST, 40: mxConstants.DIRECTION_SOUTH};
if (evt.which == 9) {
if (mxEvent.isControlDown(evt)) {
@ssmooncoder
ssmooncoder / .gitconfig
Last active August 31, 2021 01:01
Terminal zsh profile
[user]
email = moonshamu@gmail.com
name = ssmooncoder
[color]
ui = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
@ssmooncoder
ssmooncoder / ijkl.ahk
Last active October 29, 2019 01:35
Windows 10 Autohotkey with Media Controls
#SingleInstance force
#InstallKeybdHook
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
if (not A_IsAdmin)
{
Run *RunAs "%A_ScriptFullPath%"
@ssmooncoder
ssmooncoder / settings.windows.json
Last active November 28, 2019 15:35
Windows 10
// Place your settings in this file to overwrite the default settings
{
"java.home": "C:\\Program Files\\Java\\jdk-12.0.1",
"php.validate.executablePath": "C:/wamp64/bin/php/php5.6.25/php.exe",
"window.menuBarVisibility": "default",
"extensions.ignoreRecommendations": false,
"typescript.check.npmIsInstalled": false,
"editor.renderWhitespace": "none",
"editor.renderControlCharacters": false,
"workbench.sideBar.location": "left",
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+l",
"command": "editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",