Skip to content

Instantly share code, notes, and snippets.

View matthewglover's full-sized avatar

Matthew Glover matthewglover

View GitHub Profile
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<!--
Checkstyle configuration that checks the Google coding conventions from Google Java Style
that can be found at https://google.github.io/styleguide/javaguide.html
Checkstyle is very configurable. Be sure to read the documentation at

Keybase proof

I hereby claim:

  • I am matthewglover on github.
  • I am mattg8l (https://keybase.io/mattg8l) on keybase.
  • I have a public key ASDYE9JBc8VcGnxOOMRC9p6ap3eAhkEvDVi1BzghEynJngo

To claim this, I am signing this object:

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val MAIN_CLASS_NAME = "TicTacToeKt"
plugins {
val kotlinVersion = "1.2.51"
kotlin("jvm") version kotlinVersion
application
id("org.jetbrains.kotlin.kapt") version kotlinVersion
call plug#begin()
" Run Unix commands easily from Vim
Plug 'tpope/vim-eunuch'
" Nova Color Scheme
Plug 'trevordmiller/nova-vim'
" File search (requires Python)
Plug 'mileszs/ack.vim'
call plug#begin()
" Run Unix commands easily from Vim
Plug 'tpope/vim-eunuch'
" Nova Color Scheme
Plug 'trevordmiller/nova-vim'
" File search (requires Python)
Plug 'mileszs/ack.vim'
provider "aws" {
region = "us-east-1"
}
resource "aws_instance" "example" {
ami = "ami-6057e21a"
instance_type = "t2.micro"
vpc_security_group_ids = ["${aws_security_group.instance.id}"]
key_name = "test-keypair"
tags {
---
- hosts: aws
become: yes
gather_facts: no
tasks:
- name: Install pre-requisites
yum: state=present name="{{item}}"
with_items:
- git
@matthewglover
matthewglover / InputStreamAdapter.java
Created October 19, 2017 14:30
Java InputStream Adapter
package com.matthewglover.core;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class InputStreamAdapter extends InputStream {
private final int bufferSize = 1024;
private final InputStream adaptedInputStream;
require_relative 'boot'
# require "rails"
require "action_controller/railtie"
require "action_view/railtie"
Bundler.require(*Rails.groups)
module BareBones
class Application < Rails::Application
@matthewglover
matthewglover / .gitignore
Created July 24, 2017 15:38
Git ignore for project using Gradle, Java and IntelliJ
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries
# Sensitive or high-churn files:
.idea/**/dataSources/