Skip to content

Instantly share code, notes, and snippets.

View tterrag1098's full-sized avatar

tterrag tterrag1098

View GitHub Profile
@tterrag1098
tterrag1098 / Hw4.java
Created October 12, 2018 18:14 — forked from treeofwar/java
import java.util.Scanner;
import java.util.Random;
public class Hw4 {
public static final int BOARD_SIZE = 10;
enum space {Empty,Player,Walked_Path,Goal,Mines};//eumeration creates a type
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
Random r = new Random();
int pX = 0;//players x and y
@tterrag1098
tterrag1098 / changelog-auth.gradle
Last active August 29, 2015 14:28 — forked from matthewprenger/changelog-auth.gradle
Jenkins Gradle Changelog Init Script, place this in ~/.gradle/init.d/changelog.gradle on your Jenkins server. Projects can simply call 'project.changelog' to get the changes for the current build.
def buildUrl = System.getenv().BUILD_URL
if (buildUrl != null) {
def auth = "<USER>:<APITOKEN>".getBytes().encodeBase64().toString()
def url = new URL("$buildUrl/api/xml?depth=20").openConnection()
url.setRequestProperty("Authorization", "Basic " + auth)
String data = url.getInputStream().text
def changelog = ""