I hereby claim:
- I am brenoc on github.
- I am brenoc (https://keybase.io/brenoc) on keybase.
- I have a public key whose fingerprint is AE0E 5CD3 D144 983C 2FF8 8C31 B6BC FD1C 4D98 43DD
To claim this, I am signing this object:
{ | |
"React Component": { | |
"prefix": "reactComp", | |
"body": [ | |
"import React, { Component } from 'react'", | |
"import PropTypes from 'prop-types'", | |
"", | |
"class ${1:${TM_FILENAME/(.*)\\.js/${1:/capitalize}/}} extends Component {", | |
" render() {", | |
" return (", |
import { AppContainer } from 'react-hot-loader' // Install `npm install react-hot-loader@next` | |
import React from 'react' | |
import App from './App' | |
const renderApp = (Root) => { | |
React.render( | |
<AppContainer> | |
<Root /> | |
</AppContainer>, | |
document.getElementById('app-root') |
I hereby claim:
To claim this, I am signing this object:
function transformToActionNames(actions) { | |
return _.map(actions, (action) => { | |
let newActionName = '' | |
for (var index = 0; index < action.length; index++) { | |
var char = action[index] | |
if (index === 0) { | |
newActionName += char.toUpperCase() | |
continue | |
} | |
if (char == char.toUpperCase()) { |
function handleEvents(event) { | |
switch(event) { | |
// ... | |
case 'sendPayments.vtex': | |
let checkoutPayments = event.data.arguments[0]; | |
let transactionResponse = event.data.arguments[1]; | |
let deviceFingerprint = event.data.arguments[2]; | |
sendPayments(checkoutPayments, transactionResponse, deviceFingerprint); | |
break; | |
} |
System.config({defaultJSExtensions: true}); | |
System.config({ | |
baseUrl: '/', | |
packages: { | |
'brenoc.theme@3.5.0': { | |
map: { | |
'vtex.sdk': 'vtex.sdk@1.0.0', | |
'n1.shelf': 'n1.shelf@0.7.1', | |
'vtex.banner': 'vtex.banner@1.0.0', |
{ | |
"AF": "AFG", | |
"AX": "ALA", | |
"AL": "ALB", | |
"DZ": "DZA", | |
"AS": "ASM", | |
"AD": "AND", | |
"AO": "AGO", | |
"AI": "AIA", | |
"AQ": "ATA", |
var express = require('express'); | |
var webpack = require('webpack'); | |
var httpProxy = require('http-proxy'); | |
var proxy = new httpProxy.createProxyServer(); | |
var config = require('./webpack.config'); | |
var app = express(); | |
var compiler = webpack(config); | |
app.use(require('webpack-dev-middleware')(compiler, { |
{ | |
"camel_case_classes": true, | |
"indentation": 2, | |
"line_endings": "linux", | |
"no_empty_param_list": true, | |
"no_implicit_braces": true, | |
"no_stand_alone_at": true, | |
"no_tabs": true, | |
"no_trailing_semicolons": true, | |
"no_trailing_whitespace": true, |
O táxi que tomei era velho pra chuchu e cheirava como se alguém tivesse acabado de vomitar ali mesmo. Sempre que tomo um táxi de madrugada, tem que estar fedendo a vômito. E o pior é que a rua estava um bocado silenciosa e deserta, embora fosse uma noite de sábado. Não se via quase ninguém. Aqui e ali tinha um homem e uma mulher atravessando a rua, abraçados pela cintura e tudo, ou um grupo de imbecis com as namoradas, todos rindo como umas hienas de qualquer coisa que, aposto, não tinha a menor graça. Nova York é terrível quando alguém ri de noite na rua; pode-se ouvir a gargalhada a quilômetros de distância. É o tipo do troço que faz a gente se sentir só e deprimido. Continuava com vontade de ir para casa e fazer um pouco de hora com a Phoebe. Mas afinal, depois de algum tempo no táxi, eu e o chofer começamos a conversar. O nome dele era Horwitz. Era um sujeito muito mais simpático do que o outro motorista com quem eu tinha andado antes. Seja como for, pensei que ele talvez soubesse alguma coisa sobre os pa |