tips to evolve as a developer
developers get stuck, paralized
https://www.oreilly.com/library/view/apprenticeship-patterns/9780596806842/ch04.html
Make It Stick https://www.amazon.com.br/Make-Stick-Science-Successful-Learning/dp/0674729013
| \documentclass[a4paper,10pt]{article} | |
| \usepackage[margin=0.5in,nofoot]{geometry} | |
| \usepackage{fontawesome5} | |
| \usepackage{hyperref} | |
| \usepackage{titlesec} | |
| \usepackage{xcolor} | |
| \hypersetup{ | |
| colorlinks=true, | |
| linkcolor=blue, |
tips to evolve as a developer
developers get stuck, paralized
https://www.oreilly.com/library/view/apprenticeship-patterns/9780596806842/ch04.html
Make It Stick https://www.amazon.com.br/Make-Stick-Science-Successful-Learning/dp/0674729013
| <AppRouter | |
| ref={stackNavigatorRef => NavigatorService.setContainer(stackNavigatorRef)} | |
| screenProps={{ | |
| t, | |
| theme, | |
| }} | |
| {...getPersistenceFunctions(navigationPersistenceKey)} | |
| /> |
| function adb_connect { | |
| # PORT used to connect. Default: 5555 | |
| PORT=${1:-5555} | |
| # IP address from current device connected | |
| IP_ADDRESS=`adb shell ip route | awk '{print $9}'` | |
| echo "ADB connect to $IP_ADDRESS on port $PORT" | |
| # Change connection from usb to tcpip using $PORT |
| // web/webpack.config.js | |
| const path = require('path'); | |
| const webpack = require('webpack'); | |
| const appDirectory = path.resolve(__dirname, '../'); | |
| // This is needed for webpack to compile JavaScript. | |
| // Many OSS React Native packages are not compiled to ES5 before being | |
| // published. If you depend on uncompiled packages they may cause webpack build |
| /** | |
| * Metro configuration for React Native | |
| * https://github.com/facebook/react-native | |
| * | |
| * @format | |
| */ | |
| const path = require('path'); | |
| const { FileStore } = require('metro-cache'); |
| import * as React from 'react'; | |
| import { withRouter } from 'react-router-dom'; | |
| import { isLoggedIn } from '../../security/authentication'; | |
| import routeTo from '../utils/routeTo'; | |
| const authenticatedMiddleware = Component => { | |
| class AuthenticatedMiddleware extends React.PureComponent { | |
| componentDidMount() { | |
| this.redirectIfNotAuthenticated(); |
| {"lastUpload":"2018-12-19T18:25:14.965Z","extensionVersion":"v3.2.4"} |
| import React, { Component } from "react"; | |
| import { render } from "react-dom"; | |
| import "./index.css"; | |
| class Widget extends Component { | |
| state = { text: "" }; | |
| handleChange = (e) => { | |
| this.setState({ text: e.target.value }); | |
| }; | |
| render() { |
| function slugify(string) { | |
| const a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìıİłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;' | |
| const b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------' | |
| const p = new RegExp(a.split('').join('|'), 'g') | |
| return string.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(p, c => b.charAt(a.indexOf(c))) // Replace special characters | |
| .replace(/&/g, '-and-') // Replace & with 'and' | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word characters |