Last active
August 29, 2015 14:16
-
-
Save aphexmunky/60c020ce4e64ff13b82e to your computer and use it in GitHub Desktop.
Just somewhere to plonk some random functions that I may or may not use
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.awt.datatransfer._ | |
| import java.awt.Toolkit | |
| import java.util.UUID | |
| def clipboardUUID = { | |
| val uuid: String = UUID.randomUUID.toString() | |
| val stringSelection = new StringSelection(uuid) | |
| val clpbrd = Toolkit.getDefaultToolkit().getSystemClipboard() | |
| clpbrd.setContents(stringSelection, null) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment