- How the browser renders the document
- Receives the data (bytes) from the server.
- Parses and converts into tokens (<, TagName, Attribute, AttributeValue, >).
- Turns tokens into nodes.
- Turns nodes into the
DOMtree.
- Builds
CSSOMtree from thecss rules.
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 React from 'react'; | |
| import { StyleSheet, Text, View, ScrollView, Button, Dimensions } from 'react-native'; | |
| const { width, height } = Dimensions.get('window'); | |
| let footerY; | |
| export default class App extends React.Component { | |
| render() { | |
| return ( | |
| <View style={styles.container}> |
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
| /* 5 Photos */ | |
| <View style={{ width: width, height: width / 2}}> | |
| <View style = {{ flex: 1, flexDirection: 'row', height: '100%', width: '100%',paddingVertical: 20, paddingHorizontal: 20, borderRadius: 30}}> | |
| <View style={{ flex: 1, borderTopLeftRadius: 30, borderBottomLeftRadius: 30, overflow: 'hidden'}}> | |
| <Image | |
| style = {{ flex: 1, height: '100%', width: '100%', resizeMode: 'stretch' }} | |
| source={require('./assets/scenery-1.jpg')} | |
| /> | |
| </View> | |
| <View style={{ flex: 1, flexDirection: 'column', height: '100%', width: '100%'}}> |
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 formattedRespose = (leg) => { | |
| let result = {}, | |
| legInfo = leg || response.routes[0].legs[0], | |
| basicInfo = {}, | |
| resultantSteps = [], | |
| lastStep = {}, | |
| nextPointInfo = {}; | |
| basicInfo = { | |
| startAddress: legInfo.start_address, |
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
| let { width, height } = Dimensions.get('window'); | |
| const ASPECT_RATIO = width / height; | |
| const LATITUDE = 0; | |
| const LONGITUDE = 0; | |
| const LATITUDE_DELTA = 0.0922; | |
| const LONGITUDE_DELTA = LATITUDE_DELTA * ASPECT_RATIO; | |
| /* Component */ | |
| constructor() { | |
| super(); |
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 repl = require('repl'); | |
| repl.start({ prompt: '> ', eval: myEvalFunc, writer: outputFunc}); | |
| function myEvalFunc(cmd, context, filename, callback) { | |
| callback(null, 'Hello!!'); | |
| } | |
| function outputFunc(output) { | |
| return output; | |
| } |
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
| /** ~/.ssh/config **/ | |
| Host dev | |
| HostName 10*.19*.**.2** | |
| Port 22 | |
| User user | |
| IdentityFile ~/.ssh/id_rsa | |
| Host live | |
| HostName 10*.19*.**.2 |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Canvas rendering</title> | |
| </head> | |
| <body> |
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 server = require('net').createServer(); | |
| let counter = 0, | |
| sockets = {}; | |
| function getTimestamp() { | |
| const now = new Date(); | |
| return `${now.getHours()}:${now.getMinutes()}`; | |
| } | |
| server.on('connection', socket => { |
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
| For updating npm: | |
| sudo npm install npm@latest -g | |
| For updating node: | |
| sudo npm cache clean -f | |
| sudo npm install -g n | |
| sudo n stable | |
| Download current: |
NewerOlder
