Skip to content

Instantly share code, notes, and snippets.

View ronal2do's full-sized avatar

Ronaldo Lima ronal2do

View GitHub Profile
...
"scenarios": [
{
"label": "My Awesome Site",
"url": "http://localhost:3000/",
"hideSelectors": [],
"removeSelectors": [],
"selectorExpansion": true,
"selectors": [
".App-header",
@ronal2do
ronal2do / findauthors.sh
Created November 7, 2016 12:45 — forked from stefanfoulis/findauthors.sh
How to sync svn to git
#!/usr/bin/env bash
# Run this script inside a SVN checkout of the project
authors=$(svn log -q | grep -e '^r' | awk 'BEGIN { FS = "|" } ; { print $2 }' | sort | uniq)
for author in ${authors}; do
echo "${author} = NAME <USER@DOMAIN>";
import React, { Component } from 'react';
import Relay from 'react-relay';
import PageContainer from '../pages/PageContainer';
import Painel from '../pages/Painel';
import ProductCard from '../ProductCard/ProductCard';
import FacebookButton from '../utils/fb';
class SearchPage extends Component {
import React, { Component } from 'react';
import Relay from 'react-relay';
import FacebookButton from '../utils/fb';
class SearchPage extends Component {
state = {
value: this.props.value
}
componentWillMount() {
global.addEventListener("keyPress", this._handleEscKey, false);
};
componentWillUnmount() {
global.removeEventListener("keyPress", this._handleEscKey, false);
};
_handleEscKey = (event) => {
if(event.keyCode == 27){
We couldn’t find that file to show.
import _ from 'lodash';
import React, { Component, PropTypes } from 'react';
import { reduxForm } from 'redux-form';
import { createPost } from '../actions/index';
import { Link } from 'react-router';
const FIELDS = {
title: {
type: 'input',
label: 'Title for post'
{
"query": "mutation ($data: BlogPostInput!) { addBlogPost(data: $data) }",
"variables":{
"data":{
"_id":"67e38d557bb1237571b2147e",
"title":"teste",
"description":"teste description"
}
}
}
import React from 'react';
export default class Form extends React.Component {
static propTypes = {
name: React.PropTypes.string,
};
constructor(props) {
var webpack = require('webpack')
module.exports = {
entry: './src/main.js',
output: {
path: './dist',
publicPath: 'dist/',
filename: 'build.js'
},
module: {