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
| # Trim a single "input.png" image and save to "output.png" | |
| magick input.png -trim +repage output.png | |
| # Trim a single "image.png" image and overwrite the original file (based on @enijar comment) | |
| mogrify -trim +repage image.png | |
| # Trim and overwrite all png images from the working directory (based on @enijar comment) | |
| mogrify -trim +repage *.png |
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
| ; SpotifyGlobalKeys.ahk: | |
| ; AutoHotkey script to control Spotify with global keyboard shortcuts | |
| ; Author: James Teh <jamie@jantrid.net> | |
| ; Copyright 2017-2018 James Teh | |
| ; License: GNU General Public License version 2.0 | |
| DetectHiddenWindows, On | |
| ; Get the HWND of the Spotify main window. | |
| getSpotifyHwnd() { |
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
| package test.app; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import android.support.annotation.Nullable; | |
| import android.util.Log; | |
| import javax.script.ScriptEngine; | |
| import javax.script.ScriptEngineManager; |