Skip to content

Instantly share code, notes, and snippets.

View RusinovAnton's full-sized avatar
🌿
Keep on keeping on

Anton Rusinov RusinovAnton

🌿
Keep on keeping on
View GitHub Profile
@RusinovAnton
RusinovAnton / git-cheat-list.md
Last active February 17, 2017 21:57
Git cheat list

Git cheat list

  • name of the current banch and nothing else (for automation)

    git rev-parse --abbrev-ref HEAD
    
  • all commits that your branch have that are not yet in master

    git log master..<HERE_COMES_YOUR_BRANCH_NAME>
    
@RusinovAnton
RusinovAnton / compositional-components-demo.js
Created January 9, 2017 18:51 — forked from developit/compositional-components-demo.js
Demonstrates compositional components in Preact (or React). Live demo: https://jsfiddle.net/developit/umnb4y87/
import { h, cloneElement, Component } from 'preact';
/** Example <Fetch url="/foo.json" /> compositional component.
* Just to demonstrate a compositional component that requires input massaging.
*/
class Fetch extends Component {
state = { loading: true };
componentDidMount() {
this.update();