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
rtl react native https://github.com/entria/ReactNavigationRelayModern/pull/32/files |
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
androidgreen | |
5JFJJ53VqsZVDf9qUBAooPN8ReTkFbJXLUmizSrcjEnRgjEjTBF | |
teamwinncake | |
5JjzRvrYN3kDDK5FuS1vX5UdJFgtkrvNQdkscP6UgfQLjn6EmNB | |
mynewtestnet | |
5Jvvzhxtocmg3Xh1bB25ex4smGHnzmDsjXy46bdD1aFrfMHYhcM |
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 loginSaga from '../Set'; | |
import { expectSaga } from 'redux-saga-test-plan'; | |
import yourFunction from '../../../Containers/YourFuncionHere'; | |
global.fetch = require('jest-fetch-mock'); | |
beforeEach(() => { | |
fetch.resetMocks(); | |
}); |
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
Using submodules - it's good if repos are unrelated or developed separately | |
see http://www.kernel.org/pub/software/scm/git/docs/v1.5.6/git-submodule.html | |
Either copy repository A into a separate directory in larger project B, or (perhaps better) clone repository A into a subdirectory in project B. | |
Then use git submodule to make this repository a submodule of a repository B. | |
Using subtree - real merge | |
see http://nuclearsquid.com/writings/subtree-merging-and-you/ | |
``` |
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
# paste code into bash/zsh | |
hidedesktop() { | |
local state && state=$(defaults read com.apple.finder CreateDesktop) | |
if [ "$state" == "true" ]; then | |
defaults write com.apple.finder CreateDesktop false | |
else | |
defaults write com.apple.finder CreateDesktop true | |
fi | |
killall Finder | |
} |
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
port = 8001 | |
host = localhost | |
console.log("Example app listening at http://%s:%s", host, port) | |
// Example app listening at http://localhost:8001 | |
// Carbon | |
// https://carbon.now.sh/?bg=rgba(171%2C%20184%2C%20195%2C%201)&t=seti&wt=none&l=auto&ds=true&dsyoff=20px&dsblur=68px&wc=true&wa=true&pv=56px&ph=56px&ln=false&fl=1&fm=Hack&fs=14px&lh=133%25&si=false&es=2x&wm=false&code=port%2520%253D%25208001%250Ahost%2520%253D%2520localhost%250Aconsole.log(%2522Example%2520app%2520listening%2520at%2520http%253A%252F%252F%2525s%253A%2525s%2522%252C%2520host%252C%2520port)%250A%252F%252F%2520Example%2520app%2520listening%2520at%2520http%253A%252F%252Flocalhost%253A8001 |
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
container: HTMLDivElement { _reactRootContainer: [ReactSyncRoot] }, | |
baseElement: HTMLBodyElement {}, | |
debug: [Function: debug], | |
unmount: [Function: unmount], | |
rerender: [Function: rerender], | |
asFragment: [Function: asFragment], | |
queryAllByLabelText: [Function: bound queryAllByLabelText], | |
getAllByLabelText: [Function: bound getAllByLabelText], | |
queryByLabelText: [Function: bound ], | |
findAllByLabelText: [Function: bound ], |
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
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/ |
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 * as React from 'react'; | |
import { createRender, resolver as defaultResolver, getStoreRenderArgs } from 'found'; | |
import createFarceStore from 'found/lib/utils/createFarceStore'; | |
import { FarceElementResult, FarceRedirectResult, GetFarceResultArgs } from 'found/lib/server'; | |
import queryMiddleware from 'farce/lib/queryMiddleware'; | |
import BrowserProtocol from 'farce/lib/BrowserProtocol'; | |
import RouterProvider from 'found/lib/server/RouterProvider'; | |
import FarceActions from 'farce/lib/Actions'; | |
import { Resolver } from 'found-relay'; | |
import { RelayModernEnvironment } from 'relay-runtime/lib/store/RelayModernEnvironment'; |
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
test.only('it works', async () => { | |
const environment = createMockEnvironment(); | |
const ComponentWithRouter = await mountWithRouter(LoginComponent, environment); | |
const { getByPlaceholderText, queryByText, getByTestId } = render( | |
<RelayEnvironmentProvider environment={environment}> | |
<ThemeProvider theme={theme}>{ComponentWithRouter}</ThemeProvider> | |
</RelayEnvironmentProvider>, | |
); | |
// Inject some input into component |