Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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 / _sentry.js
Last active November 30, 2019 21:42
20191201 Next.js アドカレ用
module.exports = {
init() {
// 無
}
};
@tkdn
tkdn / next.config.js
Last active November 30, 2019 21:39
20191201 Next.js アドカレ用
module.exports = {
poweredByHeader: false,
};
@tkdn
tkdn / docker-compose.yml
Last active October 7, 2019 09:19
docker-compose mysql
version: "3.7"
services:
mysql:
container_name: apollo-work-mysql
image: mysql:5.7
restart: always
ports:
- 3306:3306
volumes:
@tkdn
tkdn / 2018-6-1.md
Created December 29, 2018 11:56
GraphQL について知っておくべきこと

以下、記事の要約と個人的な疑問点などです。 GraphQL: Everything You Need to Know – Weblab Technology – Medium

また記事中に出てくるサンプルについてはより削ぎ落としたもので、依存がほとんどない。 GraphQL はクライアントからすると、クライアントキャッシングやその他課題はあるものの、クエリ言語である以外何者でもなさそうというがよく分かる。