Compile with:
webpack --config vendor.webpack.config.js
webpack --config app.webpack.config.jsUse with the following index.html
| const input = [ | |
| 'racecar', | |
| 'racecarff', | |
| 'abbccc', | |
| 'a', | |
| 'aabb', | |
| 'cabc', | |
| ]; | |
| input.forEach(word => { |
Compile with:
webpack --config vendor.webpack.config.js
webpack --config app.webpack.config.jsUse with the following index.html
| import React from "react"; | |
| import { render } from "react-dom"; | |
| import PropTypes from "prop-types"; | |
| class TweetForm extends React.Component { | |
| state = { | |
| text: '' | |
| } |
| import React, { Component } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { connect } from 'react-redux'; | |
| import { StyleSheet, View, Alert } from 'react-native'; | |
| import Spinner from 'react-native-loading-spinner-overlay'; | |
| import { | |
| Container, | |
| Content, | |
| Icon, |
| .SVGIcon { | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| /* fix webkit/blink poor rendering issues */ | |
| transform: translate3d(0,0,0); | |
| /* it's better defined directly because of the cascade shit | |
| width: inherit; | |
| height: inherit; |
| const puppeteer = require('puppeteer'); | |
| let browser = puppeteer.launch({ | |
| args: ['--no-sandbox', '--disable-setuid-sandbox'], | |
| }); | |
| async function test(url) { | |
| browser = await browser; | |
| const page = await browser.newPage(); | |
| const a = Date.now(); | |
| await page.goto(url, { |
| #!/bin/bash | |
| docker run --rm --name test-container -v $(pwd):/home/circleci/codesandbox-client -w /home/circleci/codesandbox-client -d -t codesandbox/node-puppeteer yarn start:test && \ | |
| sleep 6 && docker exec -it test-container yarn test:integrations && \ | |
| docker stop test-container |
| import * as React from "react"; | |
| import * as Vue from "vue/dist/vue"; | |
| import VueElement from "./VueElement"; | |
| import { PropertyControls, ControlType } from "framer"; | |
| // Define type of property | |
| interface Props { | |
| text: string; | |
| } |
В данной заметке рассматривается работа JWT с симметичным алгоритмом шифрования (HS256/HS384/HS512)
Аутентификация(authentication, от греч. αὐθεντικός [authentikos] – реальный, подлинный; от αὐθέντης [authentes] – автор) - это процесс проверки учётных данных пользователя (логин/пароль). Проверка подлинности пользователя путём сравнения введённого им логина/пароля с логином/паролем, сохранённым в базе данных пользователей.
Авторизация(authorization — разрешение, уполномочивание) - это проверка прав пользователя на доступ к определенным ресурсам.
The idea is to have nginx installed and node installed. I will extend this gist to include how to install those as well, but at the moment, the following assumes you have nginx 0.7.62 and node 0.2.3 installed on a Linux distro (I used Ubuntu).
In a nutshell,
So for example, www.foo.com request comes and your css, js, and images get served thru nginx while everything else (the request for say index.html or "/") gets served through node.