Skip to content

Instantly share code, notes, and snippets.

View tavriaforever's full-sized avatar

Nickolay Ilchenko tavriaforever

View GitHub Profile
@mmazzarolo
mmazzarolo / mobxLogger.js
Created May 30, 2016 13:10
While waiting for React-Native MobX devtools...
import mobx from 'mobx'
const DEFAULT_STYLE = 'color: #006d92; font-weight:bold;'
// Just call this function after MobX initialization
// As argument you can pass an object with:
// - collapsed: true -> shows the log collapsed
// - style -> the style applied to the action description
export const startLogging = ({ collapsed, style } = {}) => {
mobx.spy(event => {
@Panya
Panya / bench
Last active August 29, 2015 14:01
preprocessors benchmark
html {
overflow: hidden;
&:before {
position: absolute;
top: 50%;
left: 50%;
margin: -10em;
border: dashed 2px;
width: 20em;
height: 20em;