Skip to content

Instantly share code, notes, and snippets.

View RafalFilipek's full-sized avatar
😱

Rafau RafalFilipek

😱
View GitHub Profile
@RafalFilipek
RafalFilipek / gist:9418226
Last active September 7, 2016 16:28
Atom.io ivisibles done right
# Open your stylesheet (styles.less) and add
.editor {
.invisible-character:not(.leading-whitespace):not(.hard-tab) {
visibility: hidden;
}
}

Keybase proof

I hereby claim:

  • I am rafalfilipek on github.
  • I am rafalfilipek (https://keybase.io/rafalfilipek) on keybase.
  • I have a public key whose fingerprint is 1079 0161 C12D EBF0 C070 DF33 1B65 016C 4683 F451

To claim this, I am signing this object:

<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@RafalFilipek
RafalFilipek / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<polymer-element name="my-element" fullbleed="" vertical="" layout="" unresolved="">
<template>
@RafalFilipek
RafalFilipek / list
Created August 18, 2015 13:14
Facebook modules
facebook.com => console => Obect.keys(require.__debug.modules).join('\n')
module
exports
define
global
require
requireDynamic
requireLazy
requireWeak
@RafalFilipek
RafalFilipek / gist:b793cabce0a41f77bbc2
Last active October 6, 2015 15:20
Checksum was invalid
Server:
<div class="a" data-reactid=".ff0x0eig3k.0.0.1.0.1.$items.$5915164776886913.1.1.0">
<img height="89" width="132" src="https://o.pl/1.jpg" data-reactid=".ff0x0eig3k.0.0.1.0.1.$items.$5915164776886913.1.1.0.0"/>
</div>
Client:
<div class="a" data-reactid=".ff0x0eig3k.0.0.1.0.1.$items.$5915164776886913.1.1.0">
<img width="132" height="89" src="https://o.pl/1.jpg" data-reactid=".ff0x0eig3k.0.0.1.0.1.$items.$5915164776886913.1.1.0.0"/>
</div>
import { createAction } from 'redux-actions'
/**
This will store timeoutId
*/
export const DELAY_FUNCTION_INIT = 'DELAY_FUNCTION_INIT'
export const initDelay = createAction(DELAY_FUNCTION_INIT)
/**
This clear store timeoutId
@RafalFilipek
RafalFilipek / test.js
Last active March 1, 2016 08:55
babel 6.6
// input
export const foo = (bar = 1) => {
console.log(bar)
}
//output
"use strict";
var _arguments = arguments; // ???
exports.__esModule = true;
import React, { PropTypes } from 'react'
import { pure, mapProps, compose, withState, lifecycle, setDisplayName, setPropTypes, defaultProps, onlyUpdateForPropTypes } from 'recompose'
import { repeat } from 'lodash'
export default pure(
compose(
setDisplayName('Loader'),
onlyUpdateForPropTypes,
setPropTypes({
sign: PropTypes.string,
class Foo extends React.Component {
state = {}
bar = (i) => {
this.setState({ a: i })
}
render() {
return <Biz onClick={this.bar} />
}
}