{
"data": {
"people": [
{
"name": "deptno"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // aws-cwlog trnasform script <https://www.npmjs.com/package/aws-cwlog> | |
| // CloudWatch Log to oneline format eg."2018-05-25T04:41:58 log message" | |
| map( | |
| pipe( | |
| dissoc('ingestionTime'), | |
| over( | |
| lensProp('timestamp'), | |
| pipe( | |
| x => new Date(x).toISOString(), | |
| slice(0, -5), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {ThunkAction} from 'redux-thunk' | |
| export const thunks: ThunkActionCreators = { | |
| thunkA: () => { | |
| return (dispatch, getState, extraArgs) => { | |
| setTimeout(function useTimeoutBecauseImThunk() { | |
| dispatch(actions.actionA()) | |
| }, 1000) | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function createAction<A extends ActionTypes>(type: A): TypedAction<A> | |
| function createAction<A extends ActionTypes, P>(type: A, payload: P): TypePayloadAction<A, P> | |
| function createAction(type, payload?) { | |
| return payload !== undefined ? {type, payload} : {type} | |
| } | |
| enum ActionTypes { | |
| ACTION_1 = 'action 1', | |
| ACTION_2 = 'action 2' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "verbose": false, | |
| "ignore": [ | |
| "*.test.go" | |
| ], | |
| "execMap": { | |
| "go": "go run" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| title: crypto-currency-icons | |
| emojis: | |
| - name: act | |
| src: https://github.com/cjdowner/cryptocurrency-icons/raw/master/32@2x/icon/act@2x.png | |
| - name: ada | |
| src: https://github.com/cjdowner/cryptocurrency-icons/raw/master/32@2x/icon/ada@2x.png | |
| - name: adx | |
| src: https://github.com/cjdowner/cryptocurrency-icons/raw/master/32@2x/icon/adx@2x.png | |
| - name: ae | |
| src: https://github.com/cjdowner/cryptocurrency-icons/raw/master/32@2x/icon/ae@2x.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 2 | |
| jobs: | |
| build: | |
| branches: | |
| only: | |
| - master | |
| docker: | |
| - image: circleci/node:8-stretch | |
| working_directory: ~/repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo ${CODEBUILD_BUILD_ID} | awk '{ print "{\"text\": \"빌드로그 <https://ap-northeast-2.console.aws.amazon.com/codebuild/home\?region\=ap-northeast-2\#/builds/" $1 "/view/new|" $1 ">\"}"}' | curl -H "Content-Type: application/json" -X POST -d @- https://api.dev.googit.co/common/send-to-channel-labs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.table( | |
| Array | |
| .from(document.querySelectorAll('.ty04 tr')) | |
| .map( | |
| tr => Array | |
| .from(tr.querySelectorAll('th,td')) | |
| .map(td => td.textContent) | |
| ) | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Middleware} from 'redux' | |
| import {CollectionInsertManyOptions, CollectionInsertOneOptions, MongoClient} from 'mongodb' | |
| export interface Argument { | |
| mongoDbUrl: string | |
| dbCollectionPrefix: string | |
| insertOneOptions?: CollectionInsertOneOptions | |
| insertManyOptions?: CollectionInsertManyOptions | |
| } |