The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:
🇧🇷 [pt-BR]
| function dobro(n) { | |
| if (typeof(n) != "number") return 0; // se n não é um número retorne 0 | |
| return n * 2; | |
| } | |
| document.write(dobro(2)); // ok, imprime 4 | |
| document.write(dobro("t")); // ok, "t" não é do tipo number, então imprime 0 |
The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:
🇧🇷 [pt-BR]
Compile with:
webpack --config vendor.webpack.config.js
webpack --config app.webpack.config.jsUse with the following index.html
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| 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 |
| 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() { |
| {"lastUpload":"2018-12-19T18:25:14.965Z","extensionVersion":"v3.2.4"} |
| 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(); |