Skip to content

Instantly share code, notes, and snippets.

@skartknet
skartknet / pasteAsTyping.ahk
Created October 22, 2019 21:53
It paste the clipboard content as if you were actually typing, with a delay between strokes. I find it useful to create coding tutorials and not to worry about typos.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Event ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
^+v::
FixString = {Raw}%Clipboard%
Send % sendAtRandom(FixString)
@skartknet
skartknet / thecontroller.js
Created September 30, 2019 06:32
Get current variant content in Umbraco backoffice
var culture = $routeParams.cculture ? $routeParams.cculture : $routeParams.mculture;
var activeVariant = _.find(editorState.current.variants, function (v) {
return !v.language || v.language.culture === culture;
});