Skip to content

Instantly share code, notes, and snippets.

View aaronranard's full-sized avatar

Aaron Ranard aaronranard

View GitHub Profile
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import debounce from 'throttle-debounce/debounce'
import axios from 'axios';
import SubmitButton from './SubmitButton'
export default class RegisterCompany extends Component {
constructor(props) {
@aaronranard
aaronranard / ast.md
Last active September 1, 2017 02:50
abstract syntax tree

Syntax

BNF grammar is in: examples/lang.bnf Lex grammar is in: examples/lang.lex

To see what is all possible view examples/test.lang

Run

@aaronranard
aaronranard / PULL_REQUEST_TEMPLATE.md
Last active November 29, 2017 22:57
Baseline PR Template

Description

A few sentences describing the overall goals of the pull request's commits.

Todos

  • Tested and working locally
  • New API endpoints documented
  • Unit tests (if appropriate)
  • Integration tests (if appropriate)

QA

@aaronranard
aaronranard / key-value-transform.js
Last active February 15, 2018 23:26
Key Value object to Key Value Pair Array
const keyValueObj = { "api_url": "https://hawaii.usa.gov", "message": "BALLISTIC MISSILE INBOUND.", "is_drill": true };
const keyValueArray = Object.entries(keyValueObj).map(([key, value]) => ({ key, value }));
/**
* keyValueArray:
* [
* { key: "api_url", value: "https://hawaii.usa.gov" },
* { key: "message", value: "BALLISTIC MISSILE INBOUND." },
* { key: "is_drill", value: true },
* ],