Skip to content

Instantly share code, notes, and snippets.

@benedictjohannes
benedictjohannes / IonicInput.js
Created May 23, 2020 02:15
An opinionated implementation of Ionic input handling for @ionic/react with Formik
import React from 'react'
import { IonInput, IonItem, IonLabel } from '@ionic/react'
//SCSS
// .validationMessage {
// display: none;
// &.error {
// display: block;
// font-size: 0.8rem;
// color: #ff3333;
// }
@benedictjohannes
benedictjohannes / diesel_musl_target_build_log.txt
Created May 19, 2020 11:32
Diesel Cargo build mith MUSL target: (--target=x86_64-unknown-linux-musl) log
benedict@hpsuse:~/diesel/diesel_cli> cat /proc/version
Linux version 5.6.11-1-default (geeko@buildhost) (gcc version 9.3.1 20200406 [revision 6db837a5288ee3ca5ec504fbd5a765817e556ac2] (SUSE Linux)) #1 SMP Wed May 6 10:42:09 UTC 2020 (91c024a)
benedict@hpsuse:~/diesel/diesel_cli> rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/benedict/.rustup
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu
@benedictjohannes
benedictjohannes / CRASwitchEntryPointByEnv.js
Last active April 1, 2020 17:12
Workaround to enable switching main entry point of Create-React-App by .env
// package.json
{
//...
"scripts": {
"startfirst": "REACT_APP_MAIN_COMPONENT=FirstMainComponent react-scripts start",
"buildfrst": "REACT_APP_MAIN_COMPONENT=FirstMainComponent react-scripts build",
"startsecond": "REACT_APP_MAIN_COMPONENT=SecondMainComponent react-scripts start",
"buildsecond": "REACT_APP_MAIN_COMPONENT=SecondMainComponent react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"