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
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: npm | |
| cache-dependency-path: | | |
| package-lock.json | |
| desktop/package-lock.json | |
| - id: cache-node-modules | |
| uses: actions/cache@v3 |
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
| #!/bin/bash | |
| destination=$1 | |
| deviceName="$(adb shell getprop ro.product.model)" | |
| function postRecord() { | |
| echo "⏳ Pulling screen recording from device..." | |
| sleep 3 | |
| adb pull /sdcard/tmp.mp4 "$destination" 1>/dev/null | |
| adb shell rm /sdcard/tmp.mp4 1> /dev/null |
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
| body { | |
| font-family: sans-serif; | |
| } | |
| #editor { | |
| background-color: #f0f0f0; | |
| min-height: 20rem; | |
| padding: 1rem; | |
| } |
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 path = require('path'); | |
| const portfinder = require('portfinder'); | |
| const {DefinePlugin} = require('webpack'); | |
| const {merge} = require('webpack-merge'); | |
| const getCommonConfig = require('./webpack.common'); | |
| const BASE_PORT = 8080; | |
| /** | |
| * Configuration for the local dev server |
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 {promiseWhile} from './promiseWhile'; | |
| /** | |
| * Flip a coin! | |
| * | |
| * @returns {Boolean} | |
| */ | |
| function randomBool() { | |
| return Math.random() < 0.5; | |
| } |
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 {getPullRequestsMergedBetween} from 'expensify-common'; | |
| // Then hard-code your test usages here and console.log the results |
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 PropTypes from 'prop-types'; | |
| const propTypes = { | |
| // Children to wrap with Hoverable. | |
| children: PropTypes.oneOfType([ | |
| PropTypes.node.isRequired, | |
| PropTypes.func.isRequired, | |
| ]).isRequired, | |
| // Function that executes when the mouse moves over the children. |