This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fetchMachine = Machine({ | |
| id: 'onboarding', | |
| initial: 'nilApplication', | |
| context: { | |
| retries: 0 | |
| }, | |
| states: { | |
| invest: { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" | |
| "crypto/x509/pkix" | |
| "encoding/pem" | |
| "fmt" | |
| "log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "XHKG": [ | |
| { | |
| "date": 20220201, | |
| "name": "Lunar New Year 1" | |
| }, | |
| { | |
| "date": 20220202, | |
| "name": "Lunar New Year 2" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| // "bytes" | |
| "fmt" | |
| ) | |
| func main() { | |
| type Mapping struct { | |
| symbol string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "code": "ac_refrigeration_repair", | |
| "value": "7623", | |
| "name": "A/C Refrigeration Repair" | |
| }, | |
| { | |
| "code": "accounting_bookkeeping_services", | |
| "value": "8931", | |
| "name": "Accounting/Bookkeeping Services" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as Unstated from 'unstated'; | |
| import debounce from 'lodash.debounce'; | |
| import clonedeep from 'lodash.clonedeep'; | |
| import { Alert } from 'react-native'; | |
| import AsyncStorage from '../AsyncStorage'; | |
| const noop = () => {}; | |
| //set FS storage limit for android: https://codedaily.io/tutorials/4/Increase-Android-AsyncStorage-Size-in-React-Native | |
| export class Container extends Unstated.Container { | |
| debounce = 800; | |
| constructor({ key } = {}) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Before with a higher order component. | |
| import React from 'react'; | |
| class UserCreateEdit extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| user: props.user | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import Tile from './Tile'; | |
| import {WithRequest} from './withRequest'; | |
| import Api from '../Api'; | |
| import Loading from './Loading'; | |
| const OnBoardingTemplates = () => <Tile | |
| title="Users" | |
| to="/users" | |
| actionLabel="Add New" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| steps: | |
| - checkout | |
| - restore_cache: | |
| keys: | |
| # Find a cache corresponding to this specific yarn.lock checksum | |
| # when this file is changed, this key will fail | |
| - v1-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} | |
| - run: | |
| name: install-yarn | |
| command: npm install -g [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import Api from '../Api'; | |
| import Loading from '../components/Loading'; | |
| import Title from '../components/Title'; | |
| const withRequest = ({ fetch, prop, defaultState, LoadingComponent }) => Component => class WithRequest extends React.Component { | |
| state = { | |
| [prop]: defaultState, | |
| loading: false, | |
| error: false |
NewerOlder