Skip to content

Instantly share code, notes, and snippets.

View miya's full-sized avatar
🧖‍♂️

Shun Miyazawa miya

🧖‍♂️
View GitHub Profile
import { PusherProvider } from '@harelpls/use-pusher'
// _app.js
const config = {
clientKey: 'your-pusher-client-key',
cluster: 'us2',
// required for private/presence channels
authEndpoint: '/api/pusher/auth'
}
const App = ({ Component, pageProps }) => (
@lenkan
lenkan / use-location.js
Created March 2, 2019 18:26
React hook that keeps up to date with the current location.
// @ts-check
import { useState, useEffect } from 'react'
function getCurrentLocation () {
return {
pathname: window.location.pathname,
search: window.location.search
}
}
@sifue
sifue / 無料で読めるポール・グレアムの「ハッカーと画家」+αの日本語訳のみのまとめ.md
Last active June 22, 2024 04:27
無料で読めるポール・グレアムの「ハッカーと画家」+αの日本語訳のみのまとめ
@mono0926
mono0926 / commit_message_example.md
Last active June 24, 2024 02:44
[転載] gitにおけるコミットログ/メッセージ例文集100
@mugyu
mugyu / git_create_empty_branch.mkd
Last active October 24, 2020 02:59
gitで空ブランチを生成する方法

空ブランチを(あるいはGitHub Pages用ブランチを)生成する方法

過去を持たないブランチ

git checkout --orphan gh-pages
@wate
wate / syntax.md
Last active September 13, 2022 02:26
Markdownで行こう!

Markdownで行こう!

Markdownとは?

Markdownのルールで書かれたテキストはタグなど複雑な要素が用いられていないため
直感的に分かりやすく、HTMLに変換しないままでも配布することが可能です。
Markdownのルールは[Settext][]、[atx][]、[Textile][]、[reStructuredText][]、
[Grutatext][]、[EtTe][]といったテキスト文書をHTMLに変換するツールを参考にしています。