Skip to content

Instantly share code, notes, and snippets.

diff --git a/packages/data/metadata/normalizeMetadataItem.ts b/packages/data/metadata/normalizeMetadataItem.ts
index 52418160..d29a262f 100644
--- a/packages/data/metadata/normalizeMetadataItem.ts
+++ b/packages/data/metadata/normalizeMetadataItem.ts
@@ -17,6 +17,7 @@ import {
} from './IMetadataPart';
import IMetadataStream from './IMetadataStream';
import { MetadataSubtype, MetadataType } from './MetadataType';
+import fixture from './fixture';
import {
diff --git a/packages/data/metadata/normalizeMetadataItem.ts b/packages/data/metadata/normalizeMetadataItem.ts
index 52418160..d29a262f 100644
--- a/packages/data/metadata/normalizeMetadataItem.ts
+++ b/packages/data/metadata/normalizeMetadataItem.ts
@@ -17,6 +17,7 @@ import {
} from './IMetadataPart';
import IMetadataStream from './IMetadataStream';
import { MetadataSubtype, MetadataType } from './MetadataType';
+import fixture from './fixture';
import {
// License: https://github.com/parsec-cloud/parsec-sdk/blob/master/LICENSE.md
// PARSEC API AND SDK TERMS OF USE AGREEMENT (199746555 v3)
// https://github.com/parsec-cloud/parsec-sdk/commit/07b96ec445a4f800633c5fdc5f1aaceea9856625
'use strict';
const k = {
0: 0,
1: 1,
2: 2,
3: 3,
4: 9,
<html>
<head>
<title>Parsec standalone</title>
</head>
<body>
<video id="video"></video>
</body>
<script src="./parsec-2.0-b2011ff.js"></script>
<script>
const url = "https://76-88-163-157.a8cea4aa093342a1b1a5760b57bb940f.plex.direct:54545/game/:/transcode/start?path=%2Flibrary%2Fmetadata%2F4498014&X-Plex-Product=Plex%20Web&X-Plex-Version=4.27.0&X-Plex-Client-Identifier=mojr5xtlnbdmfwjexx0xdqje&X-Plex-Platform=Chrome&X-Plex-Platform-Version=80.0&X-Plex-Sync-Version=2&X-Plex-Features=external-media%2Cindirect-media&X-Plex-Model=standalone&X-Plex-Device=OSX&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=861x862%2C1920x1200&X-Plex-Token=TOKEN&X-Plex-Language=en&Accept-Language=en'"
import PropTypes from 'prop-types';
import React, { Fragment, useCallback, useEffect, useState } from 'react';
import { useDispatch } from 'react-redux';
// This version is not transpiled. Requires recent Chrome.
import { Parsec } from 'common/js/libs/parsec-2.0-b2011ff';
import { endPlayback } from 'common/js/stores/actions/ui/player/playerLifecycleActions';
// This version will be transpiled.
// import { Parsec } from './parsec-2.0-b2011ff';
function GamePlayer(props) {
```
Feb 28, 2020 12:36:14.635 [0x70000fbd2000] DEBUG - Game: Created new host session (214812f23f1582cb73127bb9aedbbeb9a07c3e8aee8e7e7724098e1471da1b2c).
Feb 28, 2020 12:36:15.216 [0x70000fbd2000] DEBUG - Game: using ROM path '/Volumes/Media/ROMs/Donkey Kong Classics (U).nes' and host session (d4fa670e58ca6c49f7bf83c79757bb3db63987d199560bfc6b71eda180db6c95) and peer (1YSI45q5nq6orbHY7T6w4EWqkQl).
Feb 28, 2020 12:36:15.771 [0x70000fbd2000] DEBUG - Game: Looking for active peer.
Feb 28, 2020 12:36:16.397 [0x70000fbd2000] DEBUG - Game: Looking for active peer.
Feb 28, 2020 12:36:16.397 [0x70000fbd2000] DEBUG - Game: Found active peer.
```
```
INFO: Guest 'plex#1496885:ig6xc2ife9b4aal20y5m8yh8' state changed to 16.
@mseeley
mseeley / 01-mac-profiling.md
Created February 14, 2019 21:45 — forked from loderunner/01-mac-profiling.md
Profiling an application in Mac OS X

Profiling an application in Mac OS X

Finding which process to profile

If your system is running slowly, perhaps a process is using too much CPU time and won't let other processes run smoothly. To find out which processes are taking up a lot of CPU time, you can use Apple's Activity Monitor.

The CPU pane shows how processes are affecting CPU (processor) activity:

@mseeley
mseeley / amiibo-scrap.md
Created August 21, 2017 08:12
USA Amiibo line-up scraper

Use the script below to quickly scrap structured data from the USA Nintendo Amiibo Line-Up: http://www.nintendo.com/amiibo/line-up.

After running this code in the Web Insector Console tab, in Chrome, the serialized JSON will be waiting patiently in your paste buffer.

copy(Array.from(document.querySelectorAll('a[data-index]')).map((a) => {
  const gameID = a.parentNode.dataset.gameId;
 const relatedTo = a.querySelector('[itemprop=isRelatedTo]');
diff --git a/app/js/plex/base/views/v3/helpers/shouldPureComponentUpdate.js b/app/js/plex/base/views/v3/helpers/shouldPureComponentUpdate.js
index 689166b..291f489 100644
--- a/app/js/plex/base/views/v3/helpers/shouldPureComponentUpdate.js
+++ b/app/js/plex/base/views/v3/helpers/shouldPureComponentUpdate.js
@@ -6,54 +6,54 @@ export default function shouldPureComponentUpdate(instance, nextProps, nextState
const contextEqual = nextContext ? shallowEqual(instance.context, nextContext) : true;
const shouldUpdate = !propsEqual || !stateEqual || !contextEqual;
- if (__DEV__ && shouldUpdate) {
- const filter = /ocus/;
diff --git a/build/webpack.base.js b/build/webpack.base.js
index e95b194..ac4dcb6 100644
--- a/build/webpack.base.js
+++ b/build/webpack.base.js
@@ -237,7 +237,11 @@ function createConfig(options) {
'tooltip': 'libs/bootstrap/tooltip',
'button': 'libs/bootstrap/button',
'dropdown': 'libs/bootstrap/dropdown',
- 'modal': 'libs/bootstrap/modal'
+ 'modal': 'libs/bootstrap/modal',