Skip to content

Instantly share code, notes, and snippets.

View Lendar's full-sized avatar

Denis Elistratov Lendar

View GitHub Profile
@Lendar
Lendar / redux-devtools-separate-window.js
Last active August 26, 2015 09:43 — forked from tlrobinson/redux-devtools-separate-window.js
Put the awesome redux-devtools in it's own window so it doesn't obscure or be obscured by your application
import React from 'react'
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'
export default function openDebugPanel (store) {
const width = 0.3 * screen.width
const left = 0.7 * screen.width - 5
const height = screen.height
const win = window.open(
null,
'redux-devtools',
@Lendar
Lendar / emojify.coffee
Last active August 29, 2015 14:14 — forked from thomasboyt/emoji.js
Emojify React Component
React = require 'react'
punycode = require 'punycode'
HOST = 'https://assets-cdn.github.com/images/icons/emoji/unicode/'
isEmojiCode = (charCode) ->
(charCode >= 0x1f300 and charCode <= 0x1f5ff) or
(charCode >= 0x1f600 and charCode <= 0x1f64f) or
(charCode >= 0x1f680 and charCode <= 0x1f6ff) or
(charCode >= 0x2600 and charCode <= 0x26ff) or