Skip to content

Instantly share code, notes, and snippets.

View waiting-for-dev's full-sized avatar
🏠
Working from home

Marc Busqué waiting-for-dev

🏠
Working from home
View GitHub Profile
@waiting-for-dev
waiting-for-dev / FIFO.ini
Last active November 17, 2021 09:32 — forked from hmijail/FIFO.ini
A CopyQ command to implement a Clipboard FIFO
[Command]
Command="
copyq:
maxrow = count() - 1
select(maxrow)
paste()
if (config('move') == 'true') {
remove(0)
} else {
remove(maxrow)
require 'logger'
require 'byebug'
require 'dry/monads'
require 'dry/monads/do'
require 'dry/matcher/result_matcher'
module Dry
module Transaction
module Steps