Skip to content

Instantly share code, notes, and snippets.

@Joeltbond
Joeltbond / SketchSystems.spec
Created November 13, 2019 22:29
Linked Account Detail Page A
Linked Account Detail Page A
No Linking error
plaid error -> Linking error
Linking error
No Modal
click relink cta -> Modal - Did you change your credentials?
Modal - Did you change your credentials?
no -> Modal - Login to Institiution X create Linked Account A
import { eventChannel } from "redux-saga";
import { takeEvery, take, call, put } from "redux-saga/effects";
const APP_MOUNTED = "app/APP_MOUNTED";
const MIDI_UNSUPPORTED = "app/MIDI_UNSUPPORTED";
const MIDI_ACCESS_FAILURE = "app/MIDI_ACCESS_FAILURE";
const MIDI_NOTE_ON = "app/MIDI_NOTE_ON";
const MIDI_NOTE_OFF = "app/MIDI_NOTE_OFF";
const initialState = {
import React, { Component } from "react";
import { connect } from "react-redux";
import { appMounted } from "../redux_modules/app";
import MidiInput from "../components/MidiInput";
class App extends Component {
componentDidMount() {
this.props.appMounted();
}
@Joeltbond
Joeltbond / component.js
Created January 6, 2018 22:49
Dumb Component
import React from "react";
export default ({ notes }) => (
<div>
<div>Notes: {Object.keys(notes).join(", ")}</div>
</div>
);
@Joeltbond
Joeltbond / index.js
Last active January 6, 2018 22:47
Redux Module
import { eventChannel } from "redux-saga";
import { takeEvery, take, call, put } from "redux-saga/effects";
const APP_MOUNTED = "midi/APP_MOUNTED";
const MIDI_UNSUPPORTED = "midi/MIDI_UNSUPPORTED";
const MIDI_NOTE_ON = "midi/MIDI_NOTE_ON";
const MIDI_NOTE_OFF = "midi/MIDI_NOTE_OFF";
const initialState = {
errors: [],
/**
* Assumes use of font awesome for menu and 'x' icons.
* Also assumes that there is a '.hidden' class set up in your css
* with display: none;
*
* Usage:
*
* <a href="javascript:void(0);" id="menuButton" class="pull-right">
* <i class="fa fa-bars pull-right"></i>
* </a>
@Joeltbond
Joeltbond / simple-menu.css
Created June 13, 2016 05:18
simple font-awesome hamburger menu
.hidden {
display: none;
}
@Joeltbond
Joeltbond / README.md
Last active August 27, 2015 15:55 — forked from addyosmani/README.md
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version