This file contains 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
brew install pandoc | |
brew tap homebrew/cask | |
brew install --cask basictex | |
eval "$(/usr/libexec/path_helper)" | |
# Update $PATH to include `/usr/local/texlive/2022basic/bin/universal-darwin` | |
sudo tlmgr update --self | |
sudo tlmgr install texliveonfly | |
sudo tlmgr install xelatex | |
sudo tlmgr install adjustbox | |
sudo tlmgr install tcolorbox |
This file contains 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
/** | |
* HttpBuilder Testing | |
*/ | |
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.5.2' ) | |
import groovyx.net.http.* | |
import static groovyx.net.http.ContentType.* | |
import static groovyx.net.http.Method.* | |
def http = new HTTPBuilder( 'http://localhost:8080' ) |
This file contains 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
/** | |
* InputTextMask script used for mask/regexp operations. | |
* Mask Individual Character Usage: | |
* 9 - designates only numeric values | |
* L - designates only uppercase letter values | |
* l - designates only lowercase letter values | |
* A - designates only alphanumeric values | |
* X - denotes that a custom client script regular expression is specified</li> | |
* All other characters are assumed to be "special" characters used to mask the input component. | |
* Example 1: |
This file contains 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
// PostgreSQL | |
@GrabConfig(systemClassLoader=true) | |
@Grab('postgresql:postgresql:9.0-801.jdbc4') | |
def sql = groovy.sql.Sql.newInstance( | |
"jdbc:postgresql://host.example.org/database", | |
"username", "password", "org.postgresql.Driver") | |
// MySQL | |
@GrabConfig(systemClassLoader=true) |