Skip to content

Instantly share code, notes, and snippets.

View matheusps's full-sized avatar

Matheus P. Silva matheusps

View GitHub Profile
@matheusps
matheusps / affiliations.json
Created August 23, 2023 18:14
Affiliations
{
"data": [
{ "name": "PagarMeV2-1", "connector": "PagarMeV2", "connector-type": "Payment", "payment-group": "Credit Cards, Debit Cards", "mode": "Test" },
{ "name": "Cielo-1", "connector": "CieloV3", "connector-type": "Payment", "payment-group": "Credit Cards, Debit Cards", "mode": "Production" },
{ "name": "ClearSale-1", "connector": "ClearSaleAF", "connector-type": "Anti-fraud", "payment-group": "-", "mode": "Production" }
]
}
@matheusps
matheusps / products.json
Last active August 18, 2023 19:21
products
{
"products":[
{
"name":"Macbook Pro",
"price":18000
},
{
"name":"Iphone",
"price":200
},
@matheusps
matheusps / data.json
Created August 17, 2023 22:02
Something
{
"product": {
"name": "Macbook Air"
}
}
// Integration APP - IO
import { useIframeState, Iframe } from '@vtex/raccoon-io'
const [size, setSize] = useState('250px')
const iframe = useIframeState({
asyncHandlers: {
resize: (data: any) => {
setSize(data.size)
@matheusps
matheusps / ios-colors.css
Created April 21, 2020 00:32
Css colors
.light {
--blue: rgb(0, 122, 255);
--green: rgb(52, 199, 89);
--indigo: rgb(88, 86, 214);
--orange: rgb(255, 149, 0);
--pink: rgb(255, 45, 85);
--purple: rgb(175, 82, 222);
--red: rgb(255, 59, 48);
--teal: rgb(90, 200, 250);
--yellow: rgb(255, 204, 0);
{
// general
"window.zoomLevel": 1,
"workbench.startupEditor": "newUntitledFile",
"editor.tabSize": 2,
"editor.rulers": [80, 120],
"editor.formatOnSave": false,
"editor.parameterHints.enabled": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
@matheusps
matheusps / zshrc
Created March 3, 2020 19:32
OhmyZSH + Pure
# -----------------------------
# Generic paths
# -----------------------------
export PATH=~/.npm-global/bin:$PATH
# -----------------------------
# Themes
# -----------------------------
ZSH_THEME=""
autoload -U promptinit; promptinit
@matheusps
matheusps / filterShortcuts.jsx
Last active December 9, 2019 17:28
General solution to handle filter shortcust on styleguide table
/** Component that wraps the Table or filter bar */
function Parent(){
const [filterStatements, setFilterStatements] = React.useState([]);
function applyShortcut(){
setFilterStatements([
{
subject: "...",
verb: "...",
object: "..."
@matheusps
matheusps / vinicius-abc.md
Last active October 16, 2019 22:54
Treinos

A: peito + triceps

exercício séries repetições descanso
supino reto 4 8-12 1 min
supino inclinado 4 8-12 1 min
crucifixo reto 3 8-12 1 min
peck deck 3 8-12 1 min
triceps testa 3 6-10 45seg