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 / learningmap.txt
Last active January 20, 2017 11:05
Learning Map
Skill Improvement
https://www.freecodecamp.com/
https://javascript30.com/
Algorithm Improvement:
https://www.topcoder.com/my-dashboard
Raw Code Reads:
type Messenger interface {
GetMessage() (*BuildServiceRequest, error)
DeleteMessage() error
}
type MessengerImpl struct {
session *sqsiface.SQSAPI // Need to use amazon's interface
message *sqs.Message
}
@herman-rogers
herman-rogers / mrrobotdata.go
Last active February 19, 2017 18:39
Mr. Robot Data
type MrRobotMessage struct {
ArchivePath string `json:"archivepath"`
Project string `json:"project"`
EngineName string `json:"enginename"`
EnginePlatform string `json:"engineplatform"`
EngineVersion string `json:"engineversion"`
BuildrID string `json:"buildrid"`
BuildID string `json:"buildid"`
}
type StructTest struct {
Name string
InterfaceTest InterfaceTest
}
type InterfaceTest interface {
TestMethod()
}
@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"
}
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 / 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,

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 / .env
Created October 6, 2017 14:22
.env file for circle CI
API_URL=http://ci.environment.com
@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])) {