Skip to content

Instantly share code, notes, and snippets.

William Wiechorek wwiechorek

Block or report user

Report or block wwiechorek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wwiechorek
wwiechorek / gist:944f886d316114d80742a42308fa5e2c
Created Nov 27, 2019
Mudar fonte padrão de um projeto React-native
View gist:944f886d316114d80742a42308fa5e2c
import { Text } from 'react-native'
let oldText = Text.render;
Text.render = function (...args) {
let origin = oldText.call(this, ...args);
return React.cloneElement(origin, {
style: [{fontFamily: 'Open Sans'}, origin.props.style]
});
};
View js
import React, { useState } from 'react'
function AppHooks() {
const [list, setList] = useState([])
function run() {
setInterval(() => {
list.push(Math.random())
@wwiechorek
wwiechorek / app.js
Last active Feb 25, 2019
Estrutura de botão em react
View app.js
import Button from './Button'
<Button>Default</Button>
<Button inline>Inline</Button>
<Button inline primary>Primary</Button>
<Button
inline
@wwiechorek
wwiechorek / index.js
Last active Jan 4, 2019
SSR - React com create-react-app
View index.js
import bodyParser from 'body-parser';
import compression from 'compression';
import express from 'express';
import cookieParser from 'cookie-parser';
import Loadable from 'react-loadable';
import render from './render';
const app = express();
const PORT = process.env.PORT || 3000;
@wwiechorek
wwiechorek / gitche.sh
Created Sep 14, 2016
Git add + commit + pull + push AUTO
View gitche.sh
#!/bin/bash
git add -A
git commit -m "$0"
git pull
git push
@wwiechorek
wwiechorek / bin-cc.md
Created Feb 19, 2016 — forked from erikhenrique/bin-cc.md
Bin de cartões de crédito para validação
View bin-cc.md

Validação para cartão de crédito.

Bin e padrões para validação de cartão de crédito.

Bandeira Começa com Máximo de número Máximo de número cvc
Visa 4 13,16 3
Mastercard 5 16 3
You can’t perform that action at this time.