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
| #! /bin/bash | |
| # A script to make it very easy to try things in Java. | |
| # | |
| # Pros: | |
| # | |
| # * Create Java project quickly | |
| # * Create unit test files quickly | |
| # * Create source code files quickly | |
| # * Run unit tests easily |
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
| Hi <Brother-In-Law>, | |
| I hear that you are interested in learning a computer programming | |
| language. | |
| Since there are so many different programming languages, I thought I'd | |
| share one resource that attempts to calculate programming language | |
| popularity. Theoretically the more popular a language is, the bigger | |
| the market for the language. That resource is the TIOBE Index. |
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 -- jme - java-mode extensions | |
| ;;; Commentary: | |
| ;;; Useful Commands: | |
| ;;; | |
| ;;; jme-check-file-style - run checkstyle on the current file. | |
| ;;; | |
| ;;; jme-compile-current-file - compile the current file (saving any unsaved | |
| ;;; changes). |
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 com.timjstewart; | |
| import java.util.Objects; | |
| import java.util.Optional; | |
| import java.util.function.Consumer; | |
| import java.util.NoSuchElementException; | |
| /** | |
| * A value that can either be a value or a exception. |
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
| public void create(final Request request, final Response response) throws Exception { | |
| SubPubMessage subPubMessage = null; | |
| try { | |
| subPubMessage = SubPubMessage.fromFormPost(request); | |
| } catch (Exception e) { | |
| log.error("Could not parse SubPub message, message not ack'd from SubPub.", e); | |
| throw new Exception("Could not parse SubPub message, message not ack'd from SubPub.", e); | |
| } |
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
| public class VertexProperty extends Element { | |
| // Identifies the vertex that this Element's properties will be upserted to. | |
| private Pair<String, Object> vertexIdentifier; | |
| // Creates a VertexProperty with the vertex key and value used to find the vertex | |
| public VertexProperty(final String key, final Object value) { | |
| this.vertexIdentifier = new Pair<>( | |
| Objects.requireNonNull(key), | |
| Objects.requireNonNull(value) |
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.util.HashMap; | |
| import java.util.Map; | |
| import java.util.Objects; | |
| import java.util.function.Consumer; | |
| /** | |
| * An ad hoc Element class (to be replaced with real Element class). | |
| */ | |
| class Element { | |
| private String key; |
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
| #! /bin/bash | |
| # | |
| # cotd - Class of the Day. Pseudorandomly selects a Java 8 class and | |
| # opens that class' documentation in your default browser. | |
| # | |
| # relative paths to all of the JavaDocs I consider to be useful | |
| # (e.g. no corba, XML, or crypto, etc.) | |
| # | |
| # If you're not interested in some of these, you can safely delete |
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
| { | |
| "namePath": "/item/song", | |
| "descriptionPath": "/item/comments", | |
| "security": { | |
| "rules": [] | |
| }, | |
| "createdDate": "2013-07-17T09:29:07.089+10:00", | |
| "modifiedDate": "2013-07-17T09:29:07.089+10:00", | |
| "uuid": "32acbf04-f7b7-4187-85cb-2e6f99fe9123", | |
| "name": "Song Schema", |
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
| #! /bin/bash | |
| package_name=$(basename `pwd`) | |
| log_file=./cabal-init.log | |
| function fatal() { | |
| echo "$1. Examine ${log_file} for more information." 2>&1 | |
| exit 1 | |
| } |