Skip to content

Instantly share code, notes, and snippets.

import { Button, Form, Table } from "react-bootstrap";
import { Vaccines } from "@/types/vaccines";
interface VaccineTableProps {
vaccineRows: Vaccines[];
handleVaccineChange: (index: number, field: keyof Vaccines, value: string) => void;
handleAddVaccineRow: () => void;
}
export default function VaccineTable({
<template>
<div>
<table class="table table-striped table-bordered table-hover table-sm">
<thead>
<tr>
<th></th>
<th>Aplicada em</th>
<th>Replicar em</th>
</tr>
</thead>
require(data.table)
library(openxlsx)
filename <- "EXP_COMPLETA.csv"
df <- fread(filename, header = T, sep=";")
country_id <- 160
df_country <- df[df$CO_PAIS == country_id]
df_country$QT_ESTAT <- as.numeric(df_country$QT_ESTAT)
df_country$KG_LIQUIDO <- as.numeric(df_country$KG_LIQUIDO)
@brdsio
brdsio / validate_cpf.py
Last active March 4, 2018 00:21
Função para validar CPF
def validate_cpf(cpf):
validate = lambda cpf: sum([a*b for a, b in zip(map(int, list(cpf)), range(1, 10, 1))]) % 11
first_digit = validate(cpf)
second_digit = validate(cpf[1:-1])
return int(cpf[-2]) == first_digit and int(cpf[-1]) == second_digit
@brdsio
brdsio / paywall_folha.js
Created January 25, 2018 16:53
Bypass Paywall da Folha
javascript:window.location='http://tools.folha.com.br/print?site=emcimadahora&url='+document.URL