Skip to content

Instantly share code, notes, and snippets.

// MyDynamicComponent/index.js
import Loadable from 'react-loadable'

export const AsyncMyChildComponent_1 = Loadable({
  loader: () => import(/* webpackChunkName: "MyComponentNameForSourceMap" */ './Path/to/MyComponent'),
  loading: () => (<i className="icon-loading spinning">),
})

export const AsyncMyChildComponent_2 = Loadable({
@font-face {
font-family: 'Dubai';
font-weight: bolder;
font-style: normal;
src: url('https://cdn.rawgit.com/rtaibah/dubai-font-cdn/7aebfc4b/fonts/Dubai-Bold.eot');
src: url('https://cdn.rawgit.com/rtaibah/dubai-font-cdn/7aebfc4b/fonts/Dubai-Bold.eot') format('embedded-opentype'),
url('https://cdn.rawgit.com/rtaibah/dubai-font-cdn/7aebfc4b/fonts/Dubai-Bold.woff2') format('woff2'),
url('https://cdn.rawgit.com/rtaibah/dubai-font-cdn/7aebfc4b/fonts/Dubai-Bold.woff') format('woff'),
url('https://cdn.rawgit.com/rtaibah/dubai-font-cdn/7aebfc4b/fonts/Dubai-Bold.ttf') format('truetype');
}
{"chart_data": [["2017-04-16T14:42:06.968000+02:00", 943.79, 821.575, 671.172], ["2017-04-16T14:53:00.182000+02:00", 944.922, 822.12, 671.504], ["2017-04-16T14:58:58.493000+02:00", 945.387, 822.401, 671.776], ["2017-04-16T15:04:42.878000+02:00", 946.486, 822.655, 672.116], ["2017-04-16T15:10:27.581000+02:00", 947.052, 822.985, 672.421], ["2017-04-16T15:16:11.362000+02:00", 947.796, 823.199, 672.705], ["2017-04-16T15:21:55.115000+02:00", 948.92, 823.412, 672.972], ["2017-04-16T15:27:39.081000+02:00", 949.796, 823.588, 673.152], ["2017-04-16T15:33:23.366000+02:00", 950.388, 823.788, 673.328], ["2017-04-16T15:39:10.642000+02:00", 951.121, 823.963, 673.467], ["2017-04-16T15:44:54.241000+02:00", 951.863, 824.252, 673.746], ["2017-04-16T17:10:20.004000+02:00", 960.206, 828.08, 676.603], ["2017-04-16T17:16:04.812000+02:00", 960.564, 828.386, 676.751], ["2017-04-16T17:21:51.387000+02:00", 960.697, 828.645, 676.968], ["2017-04-16T17:27:36.710000+02:00", 960.928, 828.948, 677.217], ["2017-04-16T17:33:21.642000+02:00",
  • 🎨 when improving the format/structure of the code
  • 🚀 when improving performance
  • ✏️ when writing docs
  • 💡 new idea
  • 🚧 work in progress
  • ➕ when adding feature
  • ➖ when removing feature
  • 🔈 when adding logging
  • 🔇 when reducing logging
  • 🐛 when fixing a bug
@chehab
chehab / Learn Python.ipynb
Created April 15, 2016 08:04
Based on LearnPython.org
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chehab
chehab / powerline-clear-ml.theme.bash
Created June 25, 2015 14:24
Powerline Clear ML - Bash-it Theme based on powerline-multiline
#!/usr/bin/env bash
THEME_PROMPT_SEPARATOR=" "
THEME_PROMPT_LEFT_SEPARATOR=" "
SHELL_SSH_CHAR=${SHELL_SSH_CHAR:=" "}
SHELL_THEME_PROMPT_COLOR=32
SHELL_THEME_PROMPT_COLOR_SUDO=202
VIRTUALENV_CHAR=${POWERLINE_VIRTUALENV_CHAR:="ⓔ "}
@-moz-document url-prefix('https://huboard.com') {
/*************************************************************
Colum reStyle
*************************************************************/
.main-content.sidebar-open > .sidebar { flex: 0 0 230px; }
.main-content > .sidebar {
transition: all 0.4s ease-out 0s;
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
<?xml version="1.0"?>
<root>
<item>
<name>@Mechanical keyboards</name>
<item>
<name>Ctrl+Enter to Fn+Enter</name>
<identifier>private.crtl_enter_to_fn_enter</identifier>
<autogen>--KeyToKey-- KeyCode::RETURN, ModifierFlag::CONTROL_L, KeyCode::RETURN, ModifierFlag::FN</autogen>
<autogen>--KeyToKey-- KeyCode::RETURN, ModifierFlag::CONTROL_R, KeyCode::RETURN, ModifierFlag::FN</autogen>
</item>
@chehab
chehab / private.xml
Last active October 10, 2015 18:40
Karabiner (keyremap4macbook): private.xml for PC Keyboard
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>A4TECH</vendorname>
<vendorid>0x09da</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>A4TECH_PC_KB</productname>