Skip to content

Instantly share code, notes, and snippets.

@sugoidesune
sugoidesune / LightroomPresetsJumper.ahk
Last active February 5, 2024 22:07
LightroomPresetsJumper
#SingleInstance Force
SetMouseDelay, 0
;An Autohotkey script for changing quickly cycling through Lightroom Presets
;It moves the mouse by the amount of pixels set under pixels_to_move and clicks
; You can experimentally find out the best pixel distance for you and set it here.
pixels_to_move := 10
;Press Ctrl+Alt+Up to Pause the script. Press it again to restart it.
@sugoidesune
sugoidesune / regexrList.js
Created March 29, 2021 22:32
Use your regex and list-template from regexr directly in your code.
function regexrList(captureRegEx, listTemplate, str) {
// map for every match
const matchesToTemplate = (match) => {
// replace for every group in match
return match.reduce((acc,group,i)=>{
// 0th index is $n, others follow index number $1,$2
var key = '\\$' + (i==0 ? 'n' : i)
var regex = new RegExp(key,'g')
// example: replace $1 with match[1] which is 'group'
var replaced = acc.replace(regex,group)
// us this chrome extension to automatically inject this code on load: https://chrome.google.com/webstore/detail/user-javascript-and-css/nbhcbdghjpllgmfilhnhkllmkecfmpld
sidebarIsVisible = true
isNotFlipped = true
function sidebar (){
if(sidebarIsVisible){
console.log('cleaning UI')
document.getElementById('sidebar').style.width = '0px'
document.getElementById('sidebar').style.overflow = 'hidden'
document.getElementById('content').style.marginLeft = '-200px'

Keybase proof

I hereby claim:

  • I am sugoidesune on github.

  • I am timar (https://keybase.io/timar) on keybase.

  • I have a public key ASCLWVuMYLPnxlSBrsvWRe3WwMEb0C1SsZgAcBaztYgaOQo