Skip to content

Instantly share code, notes, and snippets.

View rafaelrinaldi's full-sized avatar

Rafael Rinaldi rafaelrinaldi

View GitHub Profile
#!/bin/sh
# vim ft=sh
echo "Bootstrap has started"
echo "Set proper NVM version"
source $(brew --prefix nvm)/nvm.sh --no-use
nvm use v10.15.0
echo "Halt active containers"
import * as React from 'react';
import cx from 'classnames';
import {keyCodes, sizes, svgs} from '../../constants';
import Icon from '../icon/Icon';
import useClickOutside from '../../hooks/useClickOutside';
import useControlScrolling from '../../hooks/useControlScrolling';
import styles from './DropDown.pcss';

Feature Flags

We currently have a very simple feature flag system in place to test features that aren't production ready yet.

There are currently two ways of enabling feature flags:

  • Via query strings (no build required, great for testing things in the browser)
  • Via environment variables (build required, great for testing things in the launcher if you can't simply use mockLauncher)

Query Strings

echo "\ncommon"
for file in libraries/epic-diesel-common/i18n/*.json
do
cat $file | jq empty
jsonlint-cli $file
done
echo "\nfeed"
for file in libraries/epic-diesel-feed/i18n/*.json
do
const ButtonWithPadding = ({ children, ...props }) =>
<button style={{ padding: '15px 10px' }} {...props}>{children}</button>
const ButtonPrimary = ({ children, ...props }) =>
<button style={{ color: 'white', backgroundColor: 'seagreen' }} {...props}>{children}</button>
const ButtonOutline = ({ children, ...props}) =>
<button style={{ backgroundColor: 'transparent', border: '4px solid darkred' }} {...props}>{children}</button>
const ButtonBase = ({ children, ...props }) => <button {...props}>{children}</button>;
set -x LSCOLORS ExFxCxDxBxegedabagacad
set -x LC_CTYPE en_US.UTF-8
set -x EDITOR nvim
set -x VIMRC $HOME/.vimrc
set -x TMUXRC $HOME/.tmux.conf
set -x FISHRC $HOME/.config/fish/config.fish
# $PATH equivalent
set -U fish_user_paths /usr/local/bin
Team
Name Role
Andre Carvalho Technology Director
Andy Baudoin Lead Developer
Bethany Pensworth Project Manager
Chris James Lead Developer
Jim Watkins QA Analyst
@rafaelrinaldi
rafaelrinaldi / parcel-test.js
Created July 11, 2018 19:48
parcel-test.js
parcelRequire = (function (init) {
// Save the require from previous bundle to this closure if any
var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
var nodeRequire = typeof require === 'function' && require;
var modules = {};
function localRequire(name, jumped) {
if (name in modules) {
return modules[name];
}
import React from 'react';
import { StyleSheet, css } from 'aphrodite/no-important';
import helpers from '../theme/helpers';
/**
* Base component that reduces boilerplate and enforces consistency.
* Highly inspired by the work done by the Hyperterm team.
*/
const hoc = Component =>
import React from 'react';
import { PureComponent } from './BaseComponent';
import { opacity, space } from '../theme';
const data = [
{
id: 'your-policy',
children: 'Your Policy',
},
{