Skip to content

Instantly share code, notes, and snippets.

View jacobstr's full-sized avatar
👊
Thrutching.

Jacob Straszynski jacobstr

👊
Thrutching.
View GitHub Profile
@jacobstr
jacobstr / main.go
Created March 28, 2020 05:47
Simple client to set kubernetes node conditions.
package main
import (
"context"
"encoding/json"
"fmt"
"os"
"path/filepath"
"time"
kapitan:
vars:
target: ${name}
compile:
# tf files
- output_path: terraform
output_type: json
input_paths:
- templates/terraform/main.jsonnet
input_type: jsonnet
@jacobstr
jacobstr / gist:fbca6104b5e83f22fe50
Created December 19, 2014 21:58
ES6 Static Factory Magic - How does it work?
class Parent {
static build() {
return new this();
}
}
class Child extends Parent {
}
assert(Child.build() instanceof Child);
@jacobstr
jacobstr / github-worfklow.coffee
Last active August 29, 2015 14:00
Github + Hipchat + Hubot Workflow Integration
# Description:
# Automates aspects of mover.io's current Github workflow which leverages
# Github's issue tags and commenting system. We previously used a :+1:
# comment to approve pull requests, but doing so did not affect the state of
# the the PR.
#
# Included is a Github webhook handler that checks for comments containing
# certain trigger words. Currently:
#
# :+1: The pull request is approved.
@jacobstr
jacobstr / file1.txt
Created April 4, 2014 20:07
the description for this gist
String file contents
@jacobstr
jacobstr / index.html
Created January 4, 2013 20:29 — forked from mbostock/.block
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v0.min.js"></script>
<script>
var width = 960,
height = 500;