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
`git rebase -i HEAD~3` (here 3 means just bring up last 3 commits. Can be any number.) | |
Find the commit that you are interested in. | |
Press `i` to activate INSERT MODE in the editor. | |
Move the cursor to the begining of the commit you are interested in. | |
Change the first word from "pick" to r. (r for reword) | |
Ex: | |
pick 68dab9a7 chore(button): Datepicker fix | |
to | |
r 68dab9a7 chore(button): Datepicker fix |
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
## Update uncommitted changed testcases only: (replace 'jest' with 'yarn test' where applicable) | |
) jest --watch | |
) Press w when you have failing testcases | |
## update specific test file | |
) jest -u ./__tests__/link.test.js (include parent folders when running from inside of a 'workspace'. Same slash for Windows too.) | |
OR, | |
) jest --updateSnapshot ./__tests__/link.test.js | |
## Pick & choose failing testcases and update snapshots |
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 React from 'react'; | |
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; | |
import { MaterialIcons } from '@expo/vector-icons'; | |
import styleConst from './../constants/Style'; | |
export default class extends React.Component { | |
constructor(props) { | |
super(props); | |
} |
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
<picture> | |
<source media="(min-width: [browser_width]px)" srcset="/home/google-play-badge-lg.png"> | |
<source media="(min-width: [browser_width]px)" srcset="/home/google-play-badge-md.png"> | |
<img class="playstore-link" src="/home/google-play-badge-xs.png"> | |
</picture> |
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
const defaultReducer = Reducer(Actions); | |
const reducerCreate = () => { | |
return (state, action) => { | |
// console.log('reducer: ACTION:', action); | |
return defaultReducer(state, action); | |
}; | |
}; | |
export const RootNavigator = () => { |
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
export default class extends React.Component { | |
constructor(props){ | |
super(props); | |
} | |
componentDidMount(){ | |
console.log('They... mounted me. :( '); | |
} | |
render (){ |
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
// Redux-Saga | |
import axios from 'axios' | |
function* watchSaga(){ | |
yield takeEvery('fetch_user', fetchUser) // waiting for action (fetch_user) | |
} | |
function* fetchUser(action){ | |
try { |
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
//Some of the examples use spread syntax available via Babel in ES7 proposal. | |
//Live at: https://jsbin.com/zawavekepo/edit?js,console | |
//Arrays, slicing and avoiding mutations | |
const numArray = [10, 20, 30, 40, 50, 60]; | |
const removeAtIndex = (arr, x) => { | |
return [ | |
...arr.slice(0, x), | |
...arr.slice(x + 1) | |
]; |
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 React, { Component } from 'react'; | |
// import { IndexLink } from 'react-router'; | |
import { LinkContainer } from 'react-router-bootstrap'; | |
import classNames from 'classnames'; | |
export default class Header extends Component { | |
render() { | |
const logo2x = require('../../../static/logo/[email protected]'); | |
const css = require('./Header.scss'); |