Skip to content

Instantly share code, notes, and snippets.

View Kcin1993's full-sized avatar
😎
😃 😄 😁 😆

Kcin Chen Kcin1993

😎
😃 😄 😁 😆
View GitHub Profile

Install python2

$ ls -al /usr/local/bin/python*
$ brew tap-new kcin/homebrew-python2
$ brew extract python@2 kcin/homebrew-python2
$ brew install /usr/local/Homebrew/Library/Taps/kcin/homebrew-python2/Formula/python@2.7.17.rb

EB install hint when success

@Kcin1993
Kcin1993 / qps.md
Last active April 11, 2019 10:35
Testing qps with ab
@Kcin1993
Kcin1993 / Next-js.md
Last active April 15, 2019 06:30
Next js 學習筆記

官方教程摘要

Handling Errors

By default, Next.js will track errors like these and show it in the browser. This helps you identify errors and fix them quickly.

Once you fix the issue, the page will appear instantly without a full page reload. We do this with the help of Webpack's hot module replacement facility, which is supported in Next.js by default.

Link is Just a Higher Order Component (HOC)

Actually, the title prop on next/link component has no effect. That's because next/link is just a higher order component which only accepts the "href" and some similar props. If you need to add props to it, you need to do it to the underlying component. Do not expect the next/link component to pass those props to it's children.

@Kcin1993
Kcin1993 / GraphQL + Typescript + Serverless Lambda + DynamoDB Knowhow.md
Last active December 20, 2022 06:42
實戰筆記 GraphQL, Typescript, Aws Lambda, DynamoDB, ElasticBeanstalk, Amplify KnowHow
@Kcin1993
Kcin1993 / conquer-yosgo-note-field.json
Last active December 5, 2017 14:01
conquer-yosgo-note-field.json
/**
* 團體方案 建立揪團
* note of creating GROUP
* Create group時可將額外描述的欄位,參考下方格式存入note中
*/
{
"teamName": "",
"leader": "",
"leaderPhone": "",
@Kcin1993
Kcin1993 / YOSGO-OFFICEAL-WEB-APP-Styled-Component-sheet.js
Last active November 25, 2017 12:49
YOSGO-OFFICEAL-WEB-APP-Styled-Component-sheetjs
/**
* Pure Text
*/
const TextSmall = styled.p`
font-size: 12.3px;
margin: 0;
`
const TextBase = styled.p`
font-size: 15.2px;
margin: 0;
@Kcin1993
Kcin1993 / React-stateless-component.js
Created November 20, 2017 08:01
React-stateless-component.js
import React from 'react';
import './index.css';
const Component = () => (
<div>A simple component</div>
);
export default Component;
@Kcin1993
Kcin1993 / YOSGO_SCSS_Variables.scss
Created November 20, 2017 02:29
YOSGO_SCSS_Variables.scss
//--Color--
$lightGrayBg: #f9fafc;
$gray: #9b9b9b;
$green: #07C9C6;
$red: #f05945;
$lightGrayFieldBorder: #e3e6ee;
$lightGrayLine: #e3e6ee;
$grayWord: #9b9b9b;
//--FontSize--
@Kcin1993
Kcin1993 / React-redux-typescript-airbnbEslint.md
Last active October 4, 2017 08:29
React-redux-typescript-airbnbEslint.md
@Kcin1993
Kcin1993 / herkou-react-typescript.md
Last active October 1, 2017 13:08
herkou-react-typescript.md