import React, { Component, PropTypes } from 'react';
export default function connectToStores(reducer) {
return function(DecoratedComponent) {
return class ConnectToStoresWrapper extends Component {
static contextTypes = { flux: PropTypes.object.isRequired }
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<kml xmlns='http://www.opengis.net/kml/2.2'> | |
<Document> | |
<name>pokemonSpots</name> | |
<NetworkLink> | |
<name>Map Pokémon GO collaborative</name> | |
<Link> | |
<href>http://www.google.com/maps/d/u/0/kml?forcekml=1&mid=1vsj869Axn9JdWairc4xU6E_0DhE</href> | |
</Link> | |
</NetworkLink> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PK ˜ÓH doc.kmlïR€N1}_1}⁄'÷!ï≥QDBjì™$ÍB»Ò≥æ’ó›à?ÍwÙ«jØ∏UÍ∂ÏÒ9gŒÃòN˜JBጣ'≈Q9. 57µ–Õ§ÿ¨/œäiu@€ÑJHÌ'≈.˚ôêæÔKcQ7¬óIr\’¡àŒ | |
è | |
uHÁ’LaıçY¯n⁄?øï—e‹H…∂∆± :§d¿dpçû;aCrS—O∑ÛŸzvªY^]^≠ñ7∞\›¿≈Ï«ztΙMRx|éR"r룜ˆ¨i±«mcJn…y]#h≠uB!XÊ9Œ\⁄≠â.Ü8ÛHÙ jø¢H °C*íO=(&<ƒí=ί(:ñÄâÉàúâ]íïâbsÕ9˛_£ww%Ôõêõ≤ƒ–◊~∫Õ˜èµtD_y#∫s¯PΩ`cL#q»¨òı§&ëåÛ(ßJ‘죌?ûùûœˆ˙¸∫˛…Ñ„'˚ÕÈ‚~<fl-(¥Ü‰%%ˇZ•‰Ì'–,[˝PKúÚá p PK ˜ÓHúÚá p doc.kmlPK 5 º |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { IntlMixin } from 'react-intl'; | |
// prevent app to break when translation is missing | |
// add message a la i18n Rails | |
export function getIntlMessage(key) { | |
try { | |
return IntlMixin.getIntlMessage.call(this, key); | |
} catch (error) { | |
const { locale } = this.props; | |
return `translation missing ${locale}: ${key}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoSizeText = -> | |
elements = $('.resize') | |
return if elements.length < 0 | |
for el in elements | |
do (el) -> | |
resizeText = -> | |
elNewFontSize = (parseInt($(el).css('font-size'), 10) - 1) | |
$(el).css('font-size', elNewFontSize) | |
resizeText() while el.scrollHeight > el.offsetHeight |
NewerOlder