Skip to content

Instantly share code, notes, and snippets.

View gist:a283a8e26ce28ffa866f5d3f8395f8a6
<div>
{loading ? (
<Flex align="center" sx={{ py: 5 }}>
<Loading size="large" color="#ccc" />
</Flex>
) : null}
{ (
<Stack spacing={3}>
<Text as="div">
<a onClick={() => navigate(-1)}>Return to your breach list</a>
View machine.js
const fetchMachine = Machine({
id: 'fetch',
initial: 'idle',
context: {
retries: 0,
},
states: {
idle: {
on: {
OPEN: 'gettingUserIdFromDatabase',
View machine.js
const fetchMachine = Machine({
id: 'fetch',
initial: 'idle',
context: {
retries: 0,
},
states: {
idle: {
on: {
OPEN: 'gettingUserIdFromDatabase',
View machine.js
const fetchMachine = Machine({
id: 'fetch',
initial: 'idle',
context: {
retries: 0,
},
states: {
idle: {
on: {
OPEN: 'checkingTermsAccepted',
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@trabianmatt
trabianmatt / frontend-stack.md
Last active Mar 28, 2016
Trabian's Frontend Stack
View frontend-stack.md

Note: This is a portion of a project README and contains links to files within that project that are not applicable to this gist but are included anyway to show how this is used.

Frontend Stack

Build Tools

Babel

Babel is a JavaScript compiler that converts new syntax such as that provided by ES2015 (and beyond) into JavaScript that's compatible on browsers that don't support the latest standards. The Babel configuration for this application is located at .babelrc.

@trabianmatt
trabianmatt / HomeRoute.js
Created Nov 4, 2015 — forked from ide/HomeRoute.js
Simple example of an ExRoute object
View HomeRoute.js
let homeRoute = {
getSceneClass() {
return require('./HomeScreen');
},
getTitle() {
return 'Home',
},
renderLeftButton(navigator) {
View sffcu.org

Member

  • Fields:
    • member_number
    • name
    • users (array of user nodes with same data as already added to the API, including username and lock info, but add “enrollment_status” with choice of “enrolled” or “restricted” or “unenrolled”)
View sffcu.org

Linked memberships

  • Does Joe represent each membership in the DB as a separate entity with its own ID, or do we reference it with both the user id and membership number?

    For example: POST to /api/users/1/membership/12345/link to link the membership, or POST to /api/associated_member/2394809834/link

  • Which actions do we need?
View binding_test.coffee
helpers = require '../../../helpers'
{ assert } = helpers.chai
describe 'Backbone.View binding', ->
beforeEach ->
class SampleView extends Backbone.View