This file contains hidden or 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
| const handleRouterUpdate = function () { | |
| // import bowser from 'bowser'; | |
| if (bowser.msedge) { | |
| // wrapping in a setTimeout ensures that it runs | |
| // after the route has finished transitioning | |
| setTimeout(() => { | |
| const favicons = document.querySelectorAll('link[rel="icon"]'); | |
| Array.prototype.forEach.call(favicons, (fav) => { fav.href = fav.href; }); | |
| }, 0); | |
| } |
This file contains hidden or 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
| <Helmet | |
| titleTemplate={"%s | " + config.siteName} | |
| meta={[{ | |
| name: 'apple-mobile-web-app-title', | |
| content: config.appName, | |
| }, { | |
| ... | |
| }]} | |
| /> |
This file contains hidden or 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"?> | |
| <browserconfig> | |
| <msapplication> | |
| <tile> | |
| <square70x70logo src="/mstile-70x70.png"/> | |
| <square144x144logo src="/mstile-144x144.png"/> | |
| <square150x150logo src="/mstile-150x150.png"/> | |
| <square310x310logo src="/mstile-310x310.png"/> | |
| <wide310x150logo src="/mstile-310x150.png"/> | |
| <TileColor>#132935</TileColor> |
This file contains hidden or 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 React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import Perf from 'react-addons-perf'; | |
| import { range } from 'ramda'; | |
| window.Perf = Perf; | |
| Perf.start(); | |
| class Foo extends React.Component { |
This file contains hidden or 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
| /** | |
| * Copyright (c) 2015-present, Facebook, Inc. | |
| * All rights reserved. | |
| * | |
| * This source code is licensed under the BSD-style license found in the | |
| * LICENSE file in the root directory of this source tree. An additional grant | |
| * of patent rights can be found in the PATENTS file in the same directory. | |
| */ | |
| #import "AppDelegate.h" |
This file contains hidden or 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 "AppDelegate.h" | |
| #import "RCTBundleURLProvider.h" | |
| #import "RCTRootView.h" |
This file contains hidden or 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
| /** | |
| * Copyright (c) 2015-present, Facebook, Inc. | |
| * All rights reserved. | |
| * | |
| * This source code is licensed under the BSD-style license found in the | |
| * LICENSE file in the root directory of this source tree. An additional grant | |
| * of patent rights can be found in the PATENTS file in the same directory. | |
| */ | |
| #import <UIKit/UIKit.h> |
This file contains hidden or 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
| // Constants | |
| // ----------------------------------------------- | |
| const DATA_PACKET_SIZE = 500 + 20 + 20; | |
| const ACK_PACKET_SIZE = 0; | |
| const BITS_TO_BYTE = 8; | |
| const TOCK_MS = 1; | |
| const LINK_RATE_BPS = 2 * Math.pow(10, 6); | |
| const LINK_DELAY_MS = 50; |
This file contains hidden or 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
| license: mit |
This file contains hidden or 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
| license: mit |