This file contains 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 { Meta } from "@storybook/react/types-6-0"; | |
import { PostList } from "../PostList"; | |
import { getTRPCMock } from "../getTrpcMock"; | |
export default { | |
title: "Components/PostList", | |
component: PostList, | |
} as Meta; | |
export const PostListPage = () => { |
This file contains 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
const dupStudentCells = $('.allskills-table thead th.student-name').toArray(); | |
const studentCells = dupStudentCells.slice(0, dupStudentCells.length / 2); | |
const studentNames = studentCells.map(c => c.innerText); | |
const skillCells = $('.allskills-table .skill-row').toArray() | |
.map(row => $(row).find('td').toArray().slice(2)); | |
const isDone = td => $(td).hasClass('done'); | |
const isOngoing = td => $(td).hasClass('ongoing'); | |
const [TO_GAIN, ONGOING, DONE] = ['TO_GAIN', 'ONGOING', 'DONE']; |
This file contains 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
" Specify a directory for plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'scrooloose/nerdtree' | |
"Plug 'tsony-tsonev/nerdtree-git-plugin' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'airblade/vim-gitgutter' |
This file contains 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 React from "react" | |
import { Route, Switch } from "react-router-dom" | |
const AppRoute = ({ component: Component, layout: Layout, ...rest }) => ( | |
<Route {...rest} render={props => ( | |
<Layout> | |
<Component {...props} /> | |
</Layout> | |
)} /> | |
) |