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
| // Paste in console. | |
| function getScopes(root) { | |
| var scopes = []; | |
| function traverse(scope) { | |
| scopes.push(scope); | |
| if (scope.$$nextSibling) | |
| traverse(scope.$$nextSibling); | |
| if (scope.$$childHead) | |
| traverse(scope.$$childHead); |
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
| // The profile model | |
| var profile = require('./profile').get() | |
| profile.then(function() { | |
| AppRouter() | |
| }, function() { | |
| LoginRouter() | |
| }) | |
| function AppRouter() { |
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
| // set babel in entry file | |
| require('babel-core/register')({ presets: ['es2015-node5', 'stage-3']}) | |
| require('./app') |
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
| "use strict"; | |
| // animation utils | |
| // =============== | |
| const trackTime = id => { | |
| const [entry] = performance.getEntriesByName(id); | |
| if (!entry) { | |
| performance.mark(id); |
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
| { | |
| "activity": { | |
| "category": "My Company", | |
| "id": 1, | |
| "name": "My Company" | |
| }, | |
| "attachment": { | |
| "id": 2, | |
| "name": "laugh.flac", | |
| "url": "https://aws_cloudfront/find/large.numbers", |
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 Widget: NextPage = () => { | |
| const router = useRouter(); | |
| const { extensionUid } = router.query; | |
| if (!extensionUid) return null; | |
| return ( | |
| <> | |
| <Wrapper uid={extensionUid as string} declaration={declaration}> | |
| <Field /> | |
| </Wrapper> |
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
| { | |
| "options": [ | |
| { | |
| "description": { | |
| "localized_texts": [ | |
| { | |
| "language_code": "en", | |
| "text": "Atlanta CityPASS" | |
| }, | |
| { |
OlderNewer