Skip to content

Instantly share code, notes, and snippets.

View dbofmmbt's full-sized avatar
🦀

Eduardo Canellas dbofmmbt

🦀
  • Bemobi
  • Rio de Janeiro, RJ - Brazil
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@dbofmmbt
dbofmmbt / main.rs
Created February 24, 2021 16:16
Example of new possibility with the Try trait v2
/// This code was built on @scottmcm 's PR for the new Try trait design.
#![feature(try_trait_v2)]
#![feature(control_flow_enum)]
#![feature(never_type)]
#![allow(dead_code)]
use std::ops::{ControlFlow, FromResidual, Try};
enum MyFlow<T, S = ()> {
@dbofmmbt
dbofmmbt / form.js
Last active June 15, 2019 14:30
Integration Example of React-Boostrap + Formik + Yup
/* eslint-disable no-template-curly-in-string */
import React, { Component } from 'react';
import { Formik } from 'formik';
import * as Yup from 'yup';
import { setLocale } from 'yup';
import './AuthForm.css';
import { Form, Col, Button, Container } from 'react-bootstrap';
import FormInput from "../../../components/Form/Input";
setLocale({