Skip to content

Instantly share code, notes, and snippets.

View aarongreenlee's full-sized avatar

Aaron Greenlee aarongreenlee

View GitHub Profile
@aarongreenlee
aarongreenlee / PR.md
Last active April 17, 2020 01:00
PR Template

Instructions

Thanks for submitting a change request. Please complete the template below. This template allows a program to parse the pull-request and schedule tests and in the future generate changelog content. Each section in the checklist must have an option selected for our bot to allow a merge.

  • Instructions contained within HTML comments can be deleted or not. Your choice.
  • Do not delete sections or change header or task markdown.
  • Check the boxes to order enhanced testing using your best judgement for the change submitted.
  • If you later decide you would like more tests to run you can order them by checking boxes and rebuilding your last CI job.
  • The easiest way to complete the checklist is to submit the PR and check the right boxes.

Keybase proof

I hereby claim:

  • I am aarongreenlee on github.
  • I am aarongreenlee (https://keybase.io/aarongreenlee) on keybase.
  • I have a public key ASDY96jlXDv388Ub2Y0gNlpOq2_sU_YdUIEN2JIQdkvs6Qo

To claim this, I am signing this object:

@aarongreenlee
aarongreenlee / explore-rust-syntax.rs
Created January 21, 2019 22:57
Explore Rust Syntax
fn main() {
// 'immutable_int' is a i32 (by default)
let immutable_int = 5;
// 'mutable_int' is also a i32 by default
// but can be changed (mutated).
//
// By default, variables in Rust can not
// be mutated.
let mut mutable_int = immutable_int;
@aarongreenlee
aarongreenlee / explore-structs-methods-afunctions.rs
Created January 21, 2019 22:56
Exploring Rust Structs, Methods, and Associated Functions
fn main() {
// Create an instance of a programmer using an
// Associated Function (new) which is a often used
// as a constructor in Rust.
let mut person = Programmer::new(String::from("Aaron"));
let languages = ["JavaScript", "Go", "Rust"];
for lang in languages.iter() {
person.learn(lang)
@aarongreenlee
aarongreenlee / learn-rust-enums.rs
Created January 21, 2019 22:29
Exploring enums within Rust
fn main() {
let mut person = Programmer::new(String::from("Aaron"));
// Create an array of Language(s) which use the
// Enums to constrain acceptable values.
let languages = [
Language::JavaScript,
Language::Go,
Language::Rust,
];
@aarongreenlee
aarongreenlee / feature-flags.js
Last active May 9, 2017 15:42
Feature Flags Playground
const W = 'workstation'
const I = 'integration'
const S = 'stage'
const P = 'production'
const A = ['*'] // A selector for any environment.
const ANON_USER = 0
const REPORT_USER = 2
const CONTENT_USER = 3
const ADMIN_USER = 8
@aarongreenlee
aarongreenlee / gist:c0fd5a6348acdc46b9533e0208f24e51
Last active April 27, 2016 20:00
Intellij IDEA Plugin: Go Reference Trouble
package example
type (
// Controller is the interface for Identity Actions..
Controller interface {
GetByID() error
}
Control struct {}
)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE workflow PUBLIC "-//OpenSymphony Group//DTD OSWorkflow 2.8//EN" "http://www.opensymphony.com/osworkflow/workflow_2_8.dtd">
<workflow>
<meta name="jira.update.author.key">jcreenaune</meta>
<meta name="jira.description">Based on Platform Workflow</meta>
<meta name="jira.updated.date">1408520413483</meta>
<initial-actions>
<action id="1" name="Create">
<meta name="jira.description"></meta>
<validators>
@aarongreenlee
aarongreenlee / gist:4659680
Last active December 11, 2015 21:08
For Curt
public any function getTotalIndexedCountFromSolr(event, rc, prc) {
var cacheName = "TotalIndexedCountFromSolr";
var CacheResult = cacheGet(cacheName);
var forceRefresh = structKeyExists(url,'fwcache') && url.fwcache == 1;
try
{
if (isNull(CacheResult) || forceRefresh)
{
var CacheResult = cacheGet(cacheName);
@aarongreenlee
aarongreenlee / .htaccess
Created August 31, 2012 11:19
Flashservices Rewrite Rule Apache
RewriteCond %{REQUEST_URI} ^/(flashservices|flex2gateway).*$
RewriteRule ^(.*)$ - [NC,L]