Skip to content

Instantly share code, notes, and snippets.

Avatar

Evgeny Rodionov evgenyrodionov

View GitHub Profile
@ai
ai / requirements.md
Last active Jun 13, 2020
Website requirements
View requirements.md

Amplifr logo

Amplifr Landings Rules

Amplifr’s rules for landing pages created by outsource.

Requirements

@andywer
andywer / talk-proposal.md
Last active Aug 11, 2017
Reactive Conf 2017 ⚡️ Talk Proposal - Memory Leak Hunt 2017 Style
View talk-proposal.md

This is a proposal for lightning talk at Reactive Conf. Please 🌟 this gist to push the proposal!

Memory Leak Testing in 2017

Hi, I am Andy, creator of leakage - the node-powered memory leak testing library.

Instead of manual debugging it provides a structured approach to fix or even prevent memory leaks.

View sourcemap-extract.rb
#!/usr/bin/env ruby
require 'open-uri'
require 'pathname'
require 'json'
def strip_hash(f)
ext = f.extname
if ext.include?("?")
@A-gambit
A-gambit / REACTIVE2016-LIGHTNING-PROPOSAL.md
Last active Jul 11, 2017
Proposal for lightning talk at ReactiveConf 2016: Road from UndefinedLand
View REACTIVE2016-LIGHTNING-PROPOSAL.md

Proposal for a lightning talk at the Reactive 2016.

Keep calm and like/retweet it on Twitter and star this Gist to vote on this talk.

Road from UndefinedLand

Undefiend

I work at Grammarly. We like React and happily use it in our applications. However, sometimes something goes wrong and bugs creep into the code. Here comes testing. It helps make us confident about the quality of our code.

@rygine
rygine / Login.js
Last active Jan 26, 2016
An initial draft at managing local state within the global state tree.
View Login.js
import React, { Component, PropTypes } from 'react';
import { stateful } from './createStateful';
class Login extends Component {
static propTypes = {
state: PropTypes.object,
}
onUserUpdate(evt) {
View AddTravel.js
var Col = require('react-bootstrap/lib/Col')
var PageHeader = require('react-bootstrap/lib/PageHeader')
var React = require('react')
var Row = require('react-bootstrap/lib/Row')
var {connect} = require('react-redux')
var {reduxForm} = require('redux-form')
var DateInput = require('./DateInput')
var FormField = require('./FormField')
var LoadingButton = require('./LoadingButton')
@maisano
maisano / RouteTransition.jsx
Last active Jan 21, 2019
Using react-motion with react-router
View RouteTransition.jsx
import React, { PropTypes } from 'react';
import { TransitionMotion, spring } from 'react-motion';
/**
* One example of using react-motion (0.3.0) within react-router (v1.0.0-rc3).
*
* Usage is simple, and really only requires two things–both of which are
* injected into your app via react-router–pathname and children:
*
* <RouteTransition pathname={this.props.pathname}>
View credit-card-field.jsx
import React, { Component, PropTypes } from 'react';
export default class CreditCardField extends Component {
static propTypes = {
value: PropTypes.string,
onChange: PropTypes.func,
}
static defaultProps = {
value: ''
}
@alekseykulikov
alekseykulikov / wrap-generator.js
Created Jul 1, 2015
Wrap koa-like generators to express-like callbacks.
View wrap-generator.js
var co = require('co')
/**
* Wrap koa-like generators to express-like callbacks.
*
* @param {GeneratorFunction} fn
* @return {Function}
*/
modules.exports = function wrap(fn) {
@gaearon
gaearon / combining.js
Created Jun 3, 2015
Combining Stateless Stores
View combining.js
// ------------
// counterStore.js
// ------------
import {
INCREMENT_COUNTER,
DECREMENT_COUNTER
} from '../constants/ActionTypes';
const initialState = { counter: 0 };
You can’t perform that action at this time.