Skip to content

Instantly share code, notes, and snippets.

F&F priorities

  1. Make our centralization of code more efficient and more procedural
  2. Achieve code environment parity across brands (React version, babel, etc)
  3. Establish better test culture
  4. Set up infrastructure to effectively test view layer (enzyme)

Shared libs

  1. How do we funnel work into shared libs?
  2. flag part of a PR for potential shared code
  • how: github issues?
import React from 'react';
import JsonML from 'jsonml.js/lib/utils';
import isFunction from 'lodash.isfunction';
import {
reactConverters,
toStyleObject
} from './utils';
/*****************

Run a siege test

Run siege tests to stress-test your application and infrastructure.

Preparation

  1. ssh into jmeter01.aws.conde.io, use your LDAP creds
  2. type siege -h to see the siege help list

Commands

siege [options] 

Git Tricks

Here are some random tricks that are nice-to-know.

Show the commit log in condensed form:

git log --oneline

Show the commit log as it differs between two branches:

class SeeMore extends Component {
  // ...
  
  _handleClick (e) {
    // do stuff
    //
    // ** send event to capture service
    //      > event name?
    //      > event category?

First you need to install npm and then install required node modules:

  1. npm install jsdom
  2. npm install fs
  3. npm install underscore

to run the script, run node index.js. It will output the output.html file, which can be viewed in a browser.