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
public class Evapotranspiration { | |
static public double calculate ( // | |
int dayOfYear, // 1-366 | |
double tempMinC, // | |
double tempMaxC, // | |
double relativeHumidityMin, // | |
double relativeHumidityMax, // | |
double windSpeedAvgMs, // At 2 meters above the ground. | |
double solarRadiationAvgWM2, // | |
double albedo, // 0.23 for grass. |
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
// See: http://esotericsoftware.com/forum/Spine-Plugin-in-Support-5859 | |
import java.io.*; | |
import java.net.Socket; | |
import javax.sound.sampled.*; | |
public class Play { | |
static public void main (String[] args) throws Exception { | |
if (args.length != 2) { |
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
// ==UserScript== | |
// @name Reddit: Highlight New Comments v3 | |
// @description Highlights comments on Reddit that are new since your last visit. | |
// @author Chris H (Zren / Shade), Nathan Sweet | |
// @icon https://reddit.com/favicon.ico | |
// @namespace http://xshade.ca | |
// @version 1 | |
// @include /https?:\/\/((www|pay|[a-z]{2})\.)?reddit\.com\/r\/[a-zA-Z0-9]+\/comments\/.*/ | |
// @grant GM_addStyle | |
// ==/UserScript== |
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
Please note this script has moved: https://github.com/EsotericSoftware/spine-scripts |
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
Please note this script has moved: https://github.com/EsotericSoftware/spine-scripts |
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
Please note this script has moved: https://github.com/EsotericSoftware/spine-scripts |
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
.code { | |
font-family: Consolas, 'Lucida Console', monospace; | |
font-size: 85%; | |
line-height: 1.5em; | |
color: #000; | |
border: 1px solid #DBDBDB; | |
padding: 0.5em; | |
margin-bottom: 1.25em; | |
white-space: nowrap; | |
max-height: 600px; |
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
// A* for libgdx that is simple but optimized. | |
package test; | |
import com.badlogic.gdx.ApplicationAdapter; | |
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.backends.lwjgl.LwjglApplication; | |
import com.badlogic.gdx.graphics.Color; | |
import com.badlogic.gdx.graphics.GL20; | |
import com.badlogic.gdx.graphics.glutils.ShapeRenderer; |
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
Migrates multiple SVN repos to Git, without anything fancy (no Ruby, no dependencies, no issues | |
with Cygwin paths). SVN tags are created as Git tags and properly pushed to the Git repo. To run: | |
1) Edit run-authors.sh to have your SVN repos. Run it to get an authors.txt file. | |
2) Edit the authors.txt to have the names and emails if you like. You must use GitHub user email | |
addresses if you want contributions to be associated with GitHub accounts. | |
3) Edit run-convert.sh to have your SVN repos and project name (for local temp directories). Run it. |