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.image.BufferedImage; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import javax.imageio.ImageIO; | |
| /** | |
| * https://github.com/jai-imageio/jai-imageio-core | |
| * https://github.com/jai-imageio/jai-imageio-jpeg2000 | |
| * | |
| * Example of fetching dependencies, compiling, and running. |
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 module java.base; | |
| import module java.desktop; | |
| import module java.net.http; | |
| import java.util.List; | |
| /** | |
| * The playlist contains meta tags with name attributes of "music:song", each is a URL | |
| * to a song page where the meta og:title is the track title and music:musician_description contains | |
| * the artist | |
| */ |
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
| /** | |
| Script to take footprint polygons from one database, perform a conversion on | |
| them and write them to another database. | |
| */ | |
| MARS_RADIUS_METERS = 3394500 as double | |
| MARS_CIRCUM_METERS = 2*Math.PI*MARS_RADIUS_METERS as double | |
| // cutoff | |
| EQ_POLAR_LAT_LIMIT = 65 |
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 org.jfree.chart.ChartFactory | |
| import org.jfree.chart.ChartPanel | |
| import org.jfree.chart.plot.XYPlot | |
| import org.jfree.chart.renderer.xy.XYDotRenderer | |
| import org.jfree.data.time.TimeSeriesCollection | |
| import org.jfree.data.xy.XYSeriesCollection | |
| import groovy.swing.SwingBuilder |
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
| //#!/usr/bin/env groovy | |
| CVS_ID = 'HiRISE_Data_Location $Revision: 1.1 $ $Date: 2013/11/01 19:47:41 $' | |
| println CVS_ID | |
| Command_Name = ('$RCSfile: HiRISE_Data_Location,v $' =~ /(\w+),v/)[0][1] | |
| // Number of orbits per directory. | |
| DEFAULT_ORBITS_PER_DIRECTORY = 100 |
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
| A = 0.91436 | |
| B = 61.1816 | |
| C = [ 12.344, 11.853, 2.664, 7.99, 1.769, 1.764 ] | |
| TC = 180 // mg/dL | |
| BPS = 120 // systolic | |
| import static java.lang.Math.log // ln | |
| import static java.lang.Math.exp // e^x |
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
| /* | |
| Command-line application for embedding JPEG cover art in MP3, MP4 and OGG audio files. | |
| Based on taglib-1.7 (debian libtag1-dev) | |
| and libb64 (http://libb64.sourceforge.net/) needed for OGG Vorbis embedded cover art | |
| g++ -I/usr/local/include/taglib -L/usr/local/lib -ltag -lb64 setcover.cpp -o setcover | |
| g++ -I/opt/homebrew/include/taglib -L/opt/homebrew/include/b64 -ltag -lb64 setcover.cpp -o setcover | |
| */ |
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
| <html> | |
| <head> | |
| <title>EDM Favorites Volume 4</title> | |
| <script type="text/javascript"> | |
| //<![CDATA[ | |
| (function(){ | |
| // audioElement = HTML5 Audio | |
| AudioHandler = function(audioElement) |