Skip to content

Instantly share code, notes, and snippets.

View emanguy's full-sized avatar

Evan Rittenhouse emanguy

View GitHub Profile
@emanguy
emanguy / POJO.java
Created April 10, 2021 02:55
Java vs. Kotlin
public class Person {
private String name;
private String occupation;
private int age;
public Person(String name, String occupation, int age) {
this.name = name;
this.occupation = occupation;
this.age = age;
}
@emanguy
emanguy / vm_power_toggle.go
Created March 1, 2021 07:13
Go script for changing power states of compute engine nodes on Google Cloud. Should be triggered via a PubSub topic.
package power_toggle_script
import (
"context"
"encoding/json"
"fmt"
"google.golang.org/api/compute/v1"
"strings"
)
@emanguy
emanguy / tsconfig.json
Created August 6, 2018 00:23
Sample TSConfig
{
"compilerOptions": {
"module": "commonjs",
"noImplicitAny": true,
"outDir": "build/",
"sourceMap": true,
"target": "es6",
"strictNullChecks": true
},
"include": [
@emanguy
emanguy / tasks.json
Last active November 30, 2016 21:48
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "0.1.0",
"command": "polymer",
"isShellCommand": true,
"args": [],
"showOutput": "always",
"suppressTaskName": true,
"tasks": [