Note: this is from http://softwaremaniacs.org/playground/showdown-highlight/
To see the markdown equivalent from this text, see the RAW of this file.
This is an overview of Markdown's syntax. For more information, visit the [Markdown web site].
Things I want to be able to do: | |
a) Bind a name to a remote module | |
b) Alias a name for a module | |
c) Alias a name for a member of a remote module | |
d) Put all names from inside a module in lexical scope | |
e) Put all names from inside a remote module in lexical scope | |
f) Put a few names from inside a module in lexical scope | |
g) Define a local module | |
h) Export names from lexical scope | |
i) Re-export names from other modules |
Note: this is from http://softwaremaniacs.org/playground/showdown-highlight/
To see the markdown equivalent from this text, see the RAW of this file.
This is an overview of Markdown's syntax. For more information, visit the [Markdown web site].
Key/Command | Description |
---|---|
Tab | Auto-complete files and folder names |
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + W | Delete the word before the cursor |
Ctrl + T | Swap the last two characters before the cursor |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// 12/22/2015 | |
// You might know some pretty large perfect squares. But what about the NEXT one? | |
// Complete the findNextSquare method that finds the next integral perfect square after the one passed as a parameter. Recall that | |
an integral perfect square is an integer n such that sqrt(n) is also an integer. | |
// If the parameter is itself not a perfect square, than -1 should be returned. You may assume the parameter is positive. | |
// Examples: | |
// findNextSquare(121) --> returns 144 | |
// findNextSquare(625) --> returns 676 |
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
RN >= 0.63 - watchman watch-del-all && rm -rf node_modules && npm install && rm -rf /tmp/metro-* && npm run start --reset-cache | |
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache | |
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache |
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View, | |
Easing, | |
Animated, |
import React, { | |
AppRegistry, | |
Component, | |
StyleSheet, | |
Text, | |
View, | |
Image, // we want to use an image | |
PanResponder, // we want to bring in the PanResponder system | |
Animated // we wil be using animated value | |
} from 'react-native'; |
this._panResponder = PanResponder.create({ | |
// ----------- NEGOTIATION: | |
// A view can become the touch responder by implementing the correct negotiation methods. | |
// Should child views be prevented from becoming responder on first touch? | |
onStartShouldSetPanResponderCapture: (evt, gestureState) => () => { | |
console.info('onStartShouldSetPanResponderCapture'); | |
return true; | |
}, |
npm install -g create-react-app