Skip to content

Instantly share code, notes, and snippets.

@tkdn
tkdn / next.config.js
Last active November 30, 2019 21:39
20191201 Next.js アドカレ用
module.exports = {
poweredByHeader: false,
};
@tkdn
tkdn / _sentry.js
Last active November 30, 2019 21:42
20191201 Next.js アドカレ用
module.exports = {
init() {
// 無
}
};
@tkdn
tkdn / RewriteSourceMapUrlPlugin.js
Created November 30, 2019 21:56
20191201 Next.js アドカレ用
module.exports = class RewriteSourceMapUrlPlugin {
constructor({isServer}) {
this.isServer = isServer;
}
apply(compiler) {
compiler.plugin("emit", (compilation, callback) => {
const { assets } = compilation;
// クライアントのみ sourceMappingURL を書き換える
if (!this.isServer) {
for (const [filename, content] of Object.entries(assets)) {
@tkdn
tkdn / server.ts
Last active June 25, 2020 13:43
会って 3 秒で Apollo Server
const startServer = async () => {
const app = express();
const server = new ApolloServer({
typeDefs: gql`
type Task {
id: ID!
priority: Int!
}
type Query {
task: [Task!]!
@tkdn
tkdn / toc.txt
Created October 5, 2020 08:14
フロントエンド開発入門
Part 1 導入編 なぜ使うかを知る
 Chapter 1 フロントエンドエンジニアの歴史
  1-1 Web の始まりと HTML
  1-2 Web と HTML で何ができるようになったのか
  1-3 ブラウザ戦争と標準化
  1-4 ブログの流行とインターネットインフラ
  1-5 静的な UI から動的な UI へ
  1-6 「フロントエンドエンジニア」という専門職
  1-7 Node.js による開発基盤の構築
  1-8 ECMAScript 規格更新に伴う周辺事情の活性化
@tkdn
tkdn / jirasupport.user.js
Last active January 18, 2021 02:58
UserScript
// ==UserScript==
// @name JIRA 次世代プロジェクトサポート
// @namespace https://gist.github.com/tkdn/cabe343e5fa23904e3d5346b975e5675#file-jirasupport-userscript-js
// @updateURL https://gist.githubusercontent.com/tkdn/cabe343e5fa23904e3d5346b975e5675/raw/ee98ebba57c2728ce23373de75e64e3aa81219fa/jirasupport.userscript.js
// @downloadURL https://gist.githubusercontent.com/tkdn/cabe343e5fa23904e3d5346b975e5675/raw/ee98ebba57c2728ce23373de75e64e3aa81219fa/jirasupport.userscript.js
// @version 0.1
// @description JIRA 次世代プロジェクトの UI サポートをします
// @author tkdn
// @match https://*.atlassian.net/jira/software/projects/*
// @grant none
@tkdn
tkdn / forcedresizestyle.user.js
Last active February 16, 2021 00:43
textarea をリサイズさせないのはおかしいだろ
// ==UserScript==
// @name textarea をリサイズさせないのはおかしい
// @namespace https://gist.github.com/tkdn/cad64d2e51daae9b5fdacbd62bfc8776#file-forcedresizestyle-user-js
// @updateURL https://gist.github.com/tkdn/cad64d2e51daae9b5fdacbd62bfc8776/raw/dd70110598c61e0cb27b39184091e5be8d05d8d2/forcedresizestyle.user.js
// @downloadURL https://gist.github.com/tkdn/cad64d2e51daae9b5fdacbd62bfc8776/raw/dd70110598c61e0cb27b39184091e5be8d05d8d2/forcedresizestyle.user.js
// @version 0.1
// @description
// @author tkdn
// @match https://*/*
// @grant none
@tkdn
tkdn / github-copy-short-sha.user.js
Last active December 28, 2021 04:52
SHA 短いのがクリップボードにほしい
// ==UserScript==
// @name 出、出~短管理識別子取奴〜
// @namespace https://gist.github.com/tkdn/f8fcf637fc2bc60e01f64ee7025186c3#file-github-copy-short-sha.user.js
// @updateURL https://gist.githubusercontent.com/tkdn/f8fcf637fc2bc60e01f64ee7025186c3/raw/58daa1a22a7845d838efc1786c30c96acc7ce050/github-copy-short-sha.user.js
// @downloadURL https://gist.githubusercontent.com/tkdn/f8fcf637fc2bc60e01f64ee7025186c3/raw/58daa1a22a7845d838efc1786c30c96acc7ce050/github-copy-short-sha.user.js
// @version 0.1
// @description GitHub の SHA コピーを短いやつにする
// @author tkdn <[email protected]>
// @match https://github.com/*/*
// @grant none