Visit my blog or connect with me on Twitter
git init
or
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin master |
| //by default | |
| //react-native run-ios | |
| //iPhone 4 | |
| react-native run-ios --simulator "iPhone ${1:-4}" | |
| //iPhone 4s | |
| react-native run-ios --simulator "iPhone ${1:-4s}" | |
| //iPhone 5 |
| import React from 'react'; | |
| import { ListView } from 'react-native'; | |
| export default class extends React.PureComponent { | |
| constructor(props) { | |
| super(props); | |
| const { data, dataSource, rowHasChanged: _rowHasChanged } = props; | |
| this.state.data = data || []; |
Visit my blog or connect with me on Twitter
git init
or
| // 1. Define a state variable for showing/hiding the action-button | |
| state = { | |
| isActionButtonVisible: true | |
| } | |
| // 2. Define a variable that will keep track of the current scroll position | |
| _listViewOffset = 0 | |
| // 3. Add an onScroll listener to your listview/scrollview | |
| <ListView |
| # Official framework image. Look for the different tagged releases at: | |
| # https://hub.docker.com/r/library/node/tags/ | |
| image: node:6 | |
| before_script: | |
| - npm install | |
| # This folder is cached between builds | |
| # http://docs.gitlab.com/ce/ci/yaml/README.html#cache | |
| cache: |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| // @flow | |
| import React, { Component } from 'react'; | |
| import { | |
| VirtualizedList, | |
| View, | |
| ScrollView, | |
| StyleSheet, | |
| // $FlowFixMe | |
| findNodeHandle, |
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc