Skip to content

Instantly share code, notes, and snippets.

View MaizerGomes's full-sized avatar
🎯
Focusing

Maizer Aly de Oliveira Gomes MaizerGomes

🎯
Focusing
View GitHub Profile
@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 }
},
@mortezashojaei
mortezashojaei / OrdersComponent.tsx
Last active March 19, 2025 12:42
Using laravel-echo in reactjs
import React, { FC } from 'react';
import { useSocket } from '@myapp/hooks';
import {Order} from '@myapp/models';
export const OrdersComponent: FC = () => {
const [orders,setOrders] = useState<Order[]>();
function addNewOrder(neworder:Order) {
@x011
x011 / gmail_attachment_downloader.py
Last active January 12, 2024 10:18
Gmail Attachment Downloader 2020
# Made for: https://stackoverflow.com/questions/61366836/download-attachment-from-mail-using-python/
import os
from imbox import Imbox # pip install imbox
import traceback
# enable less secure apps on your google account
# https://myaccount.google.com/lesssecureapps
host = "imap.gmail.com"