Skip to content

Instantly share code, notes, and snippets.

View Danilo-Araujo-Silva's full-sized avatar

Danilo Araújo Silva Danilo-Araujo-Silva

View GitHub Profile
/* eslint-disable */
/* tslint:disable */
/*
cycle.js
2021-05-31
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
@Danilo-Araujo-Silva
Danilo-Araujo-Silva / Vee Validate - Validating Child components
Last active March 25, 2023 10:13
A strategy to validate child components with Vue and Vee Validate.
// Somewhere in the initialization:
import VeeValidate from "vee-validate";
Vue.use(VeeValidate);
// Then, in the parent component:
export default {
provide () {
return { parentValidator: this.$validator }
},

For example, to override the AppBar (https://material-ui-next.com/api/app-bar/) root class we can do the following:

First method (override Material UI classnames):

1 - Add the property classes in the AppBar component:

    <AppBar classes={{root: 'my-root-class'}}
@Danilo-Araujo-Silva
Danilo-Araujo-Silva / tree.sh
Last active February 16, 2024 15:20
tree command, only folders, human readable format, easy way to find large folders
# Command:
sudo tree --du -ahF /path/to/folder | grep "\(files\|/\)$"
# Example from a fresh google colab opt folder:
# Command: !sudo tree --du -ahF /opt | grep "\(files\|/\)$"
# Output:
@Danilo-Araujo-Silva
Danilo-Araujo-Silva / Allowed characters in Kotlin backticks.md
Last active February 16, 2024 16:13
Allowed characters in Kotlin backticks

Allowed characters in Kotlin backticks

Some allowed characters are

val ` -!"#$%^&()*+,-=?@^_{|}~😡` = ""

Yes, that's write, emojis are allowed too =)

Some not allowed characters are