AWS 학습 링크집 시리즈
- AWS 학습 자료집 http://bit.ly/aws-study-resource
- AWS 공인 솔루션스 아키텍트 - 어소시에이트 수험 가이드 http://bit.ly/sacertguide
- AWS 공인 개발자 - 어소시에이트 수험 가이드 http://bit.ly/devcertguide
- AWS 보안 관련 컨텐츠 모음집 http://bit.ly/seccontents
AWS 학습 링크집 시리즈
| # http://webapps.stackexchange.com/questions/39587/view-estimated-size-of-github-repository-before-cloning | |
| # tested on macOS | |
| echo https://github.com/torvalds/linux.git | perl -ne 'print $1 if m!([^/]+/[^/]+?)(?:\.git)?$!' | xargs -I{} curl -s -k https://api.github.com/repos/'{}' | grep size | |
| # output: | |
| # "size": 1746294, |
| // https://medium.com/@bdc/web-components-the-react-way-8ed5b6f4f942 | |
| const store = (() => { | |
| let state; | |
| return todos => { | |
| if (todos) { | |
| state = todos; | |
| render("todo-list"); | |
| } | |
| return state; | |
| }; |
If you use Storybook with Next.js and have components using next/link you'll have to mock next/router the same you would for testing with Jest or others. Simply create a file with the mock router as shown below and import it in your Storybook config.
This is based on some information from an issue on Next.js:
| import axios from 'axios' | |
| import toast from './toast' | |
| function errorResponseHandler(error) { | |
| // check for errorHandle config | |
| if( error.config.hasOwnProperty('errorHandle') && error.config.errorHandle === false ) { | |
| return Promise.reject(error); | |
| } | |
| // if has response show the error |
| $ git clone [email protected]:xxxxx/xxxx.git my-awesome-proj | |
| Cloning into 'my-awesome-proj'... | |
| ssh: connect to host github.com port 22: Connection timed out | |
| fatal: Could not read from remote repository. | |
| $ # This should also timeout | |
| $ ssh -T [email protected] | |
| ssh: connect to host github.com port 22: Connection timed out | |
| $ # but this might work |
This is a quick-and-dirty walkthrough to set up a fresh project with Storybook Docs, Create React App, and TypeScript. If you're looking for a tutorial, please see Design Systems for Developers, which goes into much more depth but does not use Typescript.
The purpose of this walkthrough is a streamlined Typescript / Docs setup that works out of the box, since there are countless permutations and variables which can influence docs features, such as source code display, docgen, and props tables.
npx create-react-app cra-ts --template typescript