This file contains hidden or 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
| // see: https://jestjs.io/docs/next/webpack#mocking-css-modules | |
| const path = require('path') | |
| module.exports = { | |
| process (src, filename, config, options) { | |
| return `module.exports = {width: 100, height: 100, src: ${JSON.stringify('/' + path.basename(filename))}};` | |
| } | |
| } |
This file contains hidden or 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
| ;; deno project (for lsp-mode) | |
| ((nil . ((lsp-enabled-clients . (deno-ls)) | |
| (eval . (deno-fmt-mode)) | |
| (eval . (remove-hook 'before-save-hook 'prettier-js 'local)) | |
| (eval . (setq lsp-clients-deno-import-map "./import_map.json")) | |
| ))) | |
| ;; disable prettier | |
| ((nil . ((eval . (remove-hook 'before-save-hook 'prettier-js 'local))))) |
This file contains hidden or 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
| (defun my/generate-slack-reminder (content) | |
| "Generate slack reminder with CONTENT and copy to clipboard." | |
| (interactive "sContent: ") | |
| (require 'org) | |
| (let* ((date (org-read-date t 'to-time nil "Date: ")) | |
| (time-string (format-time-string "%H:%M" date)) | |
| (date-string (format-time-string "%Y-%m-%d" date))) | |
| (kill-new (concat "/remind me " content " at " time-string " on " date-string)))) |
This file contains hidden or 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
| // NOTE: | |
| // PDFのcanvas状にテキストをオーバーレイする処理 | |
| // polyfillの npm package `core-js` が別途必要になること、処理が複雑になることから必要になるまでこちらの処理の実装は保留 | |
| /* | |
| import {TextLayerBuilder} from 'pdfjs-dist/lib/web/text_layer_builder'; | |
| const renderTask = p.render(renderContext); | |
| renderTask.promise.then(() => { | |
| p.getTextContent().then((textContent) => { | |
| const textLayerDiv = divRef.current as HTMLDivElement; | |
| const textLayer = new TextLayerBuilder({textLayerDiv: textLayerDiv, viewport: viewport, pageIndex: p.pageIndex}); |
This file contains hidden or 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
| $('form.js-new-comment-form').addEventListener('submit', () => alert('are you sure?')) |
This file contains hidden or 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
| module.exports = { | |
| // Environments (構成情報) | |
| // ============================== | |
| // ESLintを処理するプロセッサの指定 | |
| // https://eslint.org/docs/user-guide/configuring#specifying-processor | |
| parser: '@typescript-eslint/parser', | |
| // ECMAScriptのバージョンやJSXなどのパーサのオプションを指定 | |
| // https://eslint.org/docs/user-guide/configuring#specifying-parser-options |
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # To enable this hook, put this file in to .git/hooks/pre-commit | |
| echo "" | |
| echo -e "\033[1;37mpre-commit hook\033[0;39m" | |
| echo "==============================" | |
| echo "" | |
| # Run test commands |
This file contains hidden or 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
| #FFFFFF | |
| #242029 | |
| #27212E | |
| #3A3242 | |
| #3E3549 | |
| #4E415C | |
| #716385 | |
| #91889B | |
| #B4DCE7 |
This file contains hidden or 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
| .ribbon{ | |
| position:fixed; | |
| padding:16px; | |
| right:0; | |
| bottom:0; | |
| opacity: 0.5; | |
| width:16%; | |
| text-align: center; |
NewerOlder