Skip to content

Instantly share code, notes, and snippets.

View knowbody's full-sized avatar
🤓

Mateusz Zatorski knowbody

🤓
View GitHub Profile
// components/Bar.js
import { doSomething } from '../actions';
// ...
// this.props.dispatch(doSomething());
/Users/mateuszzatorski/Projects/redux/src/applyMiddleware.js
33:7 error Parsing error: Unexpected token ..
/Users/mateuszzatorski/Projects/redux/src/bindActionCreators.js
33:1 error Line 33 exceeds the maximum line length of 100 max-len
38:3 error All 'var' declarations must be at the top of the function scope vars-on-top
39:3 error All 'var' declarations must be at the top of the function scope vars-on-top
40:8 error All 'var' declarations must be at the top of the function scope vars-on-top
41:5 error All 'var' declarations must be at the top of the function scope vars-on-top
42:5 error All 'var' declarations must be at the top of the function scope vars-on-top

Thanks to the 99 contributors who put 306 commits into React Native 0.22!

React Native 0.22 ships with Hot Reloading!

New features

Keybase proof

I hereby claim:

  • I am knowbody on github.
  • I am knowbody (https://keybase.io/knowbody) on keybase.
  • I have a public key whose fingerprint is 1655 284D 93F8 1768 ADDB E10B 2964 EF64 FBE9 580E

To claim this, I am signing this object:

@knowbody
knowbody / fix-github.md
Created December 19, 2015 22:35
What would fix Github?

What would fix GH issues:

  • up/down vote on issues and ranking sort
  • prioritize issues
  • reported / open / closed
  • Saved search filters & select all
  • Prompt prior to issue submission confirming having complied with issue reporting guidelines
  • Built in comment based issue closing and PR shipping
  • Built in pinging of potentially responsible parties
@knowbody
knowbody / .nvimrc
Last active December 11, 2015 17:12
My Neovim config
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.nvim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@knowbody
knowbody / router.js
Created November 12, 2015 12:32
stuff
import React, { PropTypes, Component, ContextTypes } from 'react'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { Router, Route, Link, IndexRoute, Redirect } from 'react-router'
const Navigation = (props, context) => {
let inboxSubmenu = null
if (location.pathname.indexOf('/inbox') !== -1) {
inboxSubmenu = (
<ul>
<li><Link to='/inbox/sent'>Sent</Link></li>
@knowbody
knowbody / clickOutside.js
Created November 4, 2015 16:10
React onClickOutside
componentDidMount() {
document.body.addEventListener('click', this.handleBodyClick);
}
componentWillUnmount() {
document.body.removeEventListener('click', this.handleBodyClick);
}
handleBodyClick(e) {
const area = this.refs.item.getDOMNode();