Skip to content

Instantly share code, notes, and snippets.

View borisd's full-sized avatar

Boris Dinkevich borisd

View GitHub Profile
@borisd
borisd / connect.ts
Last active May 10, 2016 15:32
using.ts
export class Connect {
private _store;
public unsubscribe;
public state;
constructor(store) {
this._store = store;
this.state = store.getState();
}
@borisd
borisd / connect.js
Created May 1, 2016 16:05
A super simple redux connect() implementation
import store from 'store/store';
const connect = (mapStateToProps) => (Component) => {
class Connect extends React.Component {
constructor() {
super();
this.state = {};
}
componentDidMount() {
function *sample() {
yield take(STEP_1)
const result = yield call(someApi)
yield take(STEP_2)
...
yield take(STEP_3)
}
@borisd
borisd / API.md
Last active November 1, 2015 19:54
APIs for Redux 101 Workshop - by 500Tech.com
@borisd
borisd / Notes.md
Last active February 8, 2016 08:56
Redux 101 Workshop Notes - By 500Tech.com
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
# The amazing coffee
foo = (a,b) ->
a * b
@borisd
borisd / gist:8729510
Created January 31, 2014 10:12
Checkout new repository

Checkout

cd to the folder where you keep your projects

git clone git@bitbucket.org:bardelas/catz.git [folder_name]
cd [folder_name]
bundle update
rake db:migrate

rails s

Checkout
---------
cd to the folder where you keep your projects
git clone git@bitbucket.org:bardelas/catz.git [folder_name]
cd [folder_name]
bundle update
rake db:migrate
rails s