caiorss / clip.jar Goto Github PK
View Code? Open in Web Editor NEWUtility to paste images from clipboard to Emacs org-mode or any markdown.
Utility to paste images from clipboard to Emacs org-mode or any markdown.
In the README it states that Java is the only dependency, however the project additionally requires SBT to build. You might consider the inclusion of sbt-launch.jar in this repo so the user does not have to install SBT.
P.S. Interesting use of Scala! I found this project via /r/emacs.
> sbt
>> version
[info] 1.1.1
> sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G1004
Image below copied to clipboard
> make test1
java -jar ./target/scala-2.11/Clip-assembly-1.1.1.jar --name clipboard
Exception in thread "main" java.lang.ClassCastException: sun.awt.image.MultiResolutionCachedImage cannot be cast to java.awt.image.BufferedImage
at Clip$$anonfun$getImage$2.apply(Clip.scala:32)
at Clip$$anonfun$getImage$2.apply(Clip.scala:32)
at scala.Option.map(Option.scala:145)
at Clip$.getImage(Clip.scala:32)
at Clip$.saveClipboardImage(Clip.scala:37)
at Clip$.main(Clip.scala:80)
at Clip.main(Clip.scala)
make: *** [test1] Error 1
> make test2
java -jar ./target/scala-2.11/Clip-assembly-1.1.1.jar --uuid .
Exception in thread "main" java.lang.ClassCastException: sun.awt.image.MultiResolutionCachedImage cannot be cast to java.awt.image.BufferedImage
at Clip$$anonfun$getImage$2.apply(Clip.scala:32)
at Clip$$anonfun$getImage$2.apply(Clip.scala:32)
at scala.Option.map(Option.scala:145)
at Clip$.getImage(Clip.scala:32)
at Clip$.saveClipboardImage(Clip.scala:37)
at Clip$.saveClipboardImageUUID(Clip.scala:52)
at Clip$.main(Clip.scala:79)
at Clip.main(Clip.scala)
make: *** [test2] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.