git checkout -b presentation-dev-branch
#
# Now develop your presentation content in this branch,
# committing as often as you want
# Then when you are finished, do the following:
#
git checkout master
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href=""> |
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
window.addEventListener('load', () => { | |
/* initializer */ | |
const menu = [...$(".global-menu")[0].children]; | |
const lastIndex = menu.findIndex(v => v.className === "divider") - 1; | |
const hasStreamParam = location.pathname.includes("stream"); | |
$("#app-container").attr("data-stream", hasStreamParam); | |
setStreamBtn(); | |
setProjects(); | |
/* event */ |
I hereby claim:
- I am lightsound on github.
- I am shimabu_it (https://keybase.io/shimabu_it) on keybase.
- I have a public key ASDFYCmRStJlCG6BT0Va_mVXGdluciP4Ct40JhkMf1xUkwo
To claim this, I am signing this object:
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 useSWR from "swr"; | |
const useSharedState = (key: string, fallbackData: any) => { | |
const { data, mutate } = useSWR(key, { fallbackData }); | |
return [data, mutate]; | |
}; | |
const useCounter = () => { | |
const [count, setCount] = useSharedState("counter", 0); | |
const handleIncrement = () => { |
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 { AnyFramework, ComponentTitle, StoryAnnotations } from '@storybook/csf' | |
import { ComponentMeta, ComponentStory } from '@storybook/react' | |
import { VFC } from 'react' | |
export const createStorybookFactory = <P extends object>(Component: VFC<P>) => { | |
const Template = ((args) => <Component {...args} />) as ComponentStory< | |
typeof Component | |
> | |
const Default = Template.bind({}) |
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 { Tab } from "@headlessui/react"; | |
import type { VFC } from "react"; | |
import { Fragment } from "react"; | |
type Props = { | |
items: { label: string; content: JSX.Element }[]; | |
}; | |
export const HorizontalTab: VFC<Props> = (props) => { | |
return ( |
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 input = [1, 2, 3, 4]; | |
const output = input.reduce((prev, current) => { | |
return prev + current; | |
}); | |
console.log(output); // 10 |
OlderNewer