Skip to content

Instantly share code, notes, and snippets.

View herman-rogers's full-sized avatar
💻
Compiling...

Herman (Boomer) Rogers herman-rogers

💻
Compiling...
View GitHub Profile
@herman-rogers
herman-rogers / MainTODO
Last active August 15, 2022 13:31
Overarching todo list for my life to both keep track of and organize my life.
* Finish MIT Quantum Computing - https://openlearninglibrary.mit.edu/courses/course-v1:MITx+8.370.1x+1T2018/course/
@herman-rogers
herman-rogers / tmux.conf
Last active November 16, 2021 20:40 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@herman-rogers
herman-rogers / PromiseExample.js
Last active May 2, 2018 15:51
Promise Chain Example
/*
So what I would like to happen is app
is initialize in componentDidMount(),
if we are to recieve an error, have the
initializeApp() function cancel out the
entire promise chain.
Ideally, the promise child is able to either
cancel execution of the promise and navigate to the
right place by default, or hand off the navigation to
@herman-rogers
herman-rogers / slim-redux.js
Created April 11, 2018 15:33 — forked from gaearon/slim-redux.js
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
@herman-rogers
herman-rogers / .env
Created October 6, 2017 14:22
.env file for circle CI
API_URL=http://ci.environment.com

Keybase proof

I hereby claim:

  • I am herman-rogers on github.
  • I am hermanrogers (https://keybase.io/hermanrogers) on keybase.
  • I have a public key ASDscZa-Co9YxTve3ta_lSFYjLa5mPH4ifxrqssf6LfXHQo

To claim this, I am signing this object:

@herman-rogers
herman-rogers / gogeta.js
Last active April 5, 2017 13:57
gogeta format
function messageData(build) {
return {
id: build._id,
project: build.name,
enginename: build.engineName,
engineversion: build.engineVersion,
engineplatform: build.enginePlatform,
buildrid: build.buildrId,
repotype: build.scm,
repourl: build.scmUrl,
func (engine Docker) RunContainer(image string) error {
ctx := context.Background()
env := []string{
fmt.Sprintf("GCLOUD_PROJECT=%s", os.Getenv("GCLOUD_PROJECT")),
fmt.Sprintf("GCLOUD_SERVICE_KEY=%s", os.Getenv("GCLOUD_SERVICE_KEY")),
fmt.Sprintf("PAPERTRAIL_ENDPOINT=%s", os.Getenv(config.LogEndpoint)),
fmt.Sprintf("REGION=%s", os.Getenv(config.LogEndpoint)),
fmt.Sprintf("AWS_ACCESS_KEY_ID=%s", os.Getenv(config.LogEndpoint)),
fmt.Sprintf("AWS_SECRET_ACCESS_KEY=%s", os.Getenv(config.LogEndpoint)),
fmt.Sprintf("CODE_REPO_STORAGE=%s", os.Getenv(config.LogEndpoint)),
@herman-rogers
herman-rogers / Unity_State.cs
Created February 24, 2017 16:36
Flux implementation in Unity
Props stateTree = {name: "InitialState", value: 0};
Props stateOneProps = {
name: "SceneOne"
value: 1
}
Props stateTwoProps = {
name: "SceneTwo"
}
type StructTest struct {
Name string
InterfaceTest InterfaceTest
}
type InterfaceTest interface {
TestMethod()
}