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
Main(require('fs').readFileSync('/dev/stdin', 'utf8')); |
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 path = require('path'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
module.exports = { | |
resolve: { | |
extensions: ['.ts', '.tsx', '.js', '.jsx'] | |
}, | |
module: { | |
rules: [ | |
{ |
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
/* eslint-disable @typescript-eslint/no-var-requires */ | |
const { resolve } = require('path') | |
const HtmlWebpackPlugin = require('html-webpack-plugin') | |
const { CleanWebpackPlugin } = require('clean-webpack-plugin') | |
const { VueLoaderPlugin } = require('vue-loader') | |
const webpack = require('webpack') | |
const outputPath = resolve(__dirname, 'dist') | |
/** @type {import('webpack').ConfigurationFactory} */ |
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
// rollup.build.config | |
import path from 'path' | |
import vue from 'rollup-plugin-vue' | |
import resolve from '@rollup/plugin-node-resolve' | |
import common from '@rollup/plugin-commonjs' | |
import babel from '@rollup/plugin-babel' | |
import typescript from 'rollup-plugin-typescript2' | |
import alias from '@rollup/plugin-alias' | |
import postcss from 'rollup-plugin-postcss' |
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
// add extention "Toggle" https://marketplace.visualstudio.com/items?itemName=rebornix.toggle | |
[ | |
{ | |
"key": "alt+cmd+v", | |
"command": "toggle", | |
"when": "editorTextFocus", | |
"args": { | |
"id": "vetur", | |
"value": [ | |
{ |
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
function getCompilerOptions(rootDir: string, configName = 'tsconfig.json') { | |
const parseConfigHost: ts.ParseConfigHost = { | |
fileExists: ts.sys.fileExists, | |
readFile: ts.sys.readFile, | |
readDirectory: ts.sys.readDirectory, | |
useCaseSensitiveFileNames: true, | |
} | |
const configFileName = ts.findConfigFile( | |
rootDir, |
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
// https://chrome.google.com/webstore/detail/scriptautorunner/gpgjofmpmjjopcogjgdldidobhmjmdbm?hl=ja-jp | |
setInterval(() => { | |
let b = document.querySelector('#react-root > div > div > div.css-1dbjc4n.r-18u37iz.r-13qz1uu.r-417010 > main > div > div > div > div.css-1dbjc4n.r-14lw9ot.r-jxzhtn.r-1ljd8xs.r-13l2t4g.r-1phboty.r-1jgb5lz.r-11wrixw.r-61z16t.r-1ye8kvj.r-13qz1uu.r-184en5c > div > div.css-1dbjc4n.r-1jgb5lz.r-1ye8kvj.r-13qz1uu > div > div > section > div > div > div:nth-child(1) > div > div') | |
b ? b.click() : (() =>{console.log('pass')}) | |
}, 1000) |
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
// https://chrome.google.com/webstore/detail/scriptautorunner/gpgjofmpmjjopcogjgdldidobhmjmdbm?hl=ja-jp | |
const title = document.querySelector('.js-issue-title')?.textContent.trim() | |
if(title) { | |
const url = location.href | |
const copyButton = document.createElement('button') | |
copyButton.addEventListener('click', () => navigator.clipboard.writeText(`${title}\n${url}`)) |
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
/* | |
* Paste in "SunippetAutoRunner" Extention and enter "jobcan.jp" as the hostname | |
* https://chrome.google.com/webstore/detail/scriptautorunner/gpgjofmpmjjopcogjgdldidobhmjmdbm | |
*/ | |
document.querySelector('html').style.transition = 'all .6s' | |
document.querySelector('main').style.display = 'flex'; | |
document.querySelector('main').style.justifyContent = 'center'; | |
document.querySelector('html').style.webkitFilter = 'invert(1) hue-rotate(180deg)' | |
const result = document.querySelector('#search-result') | |
const list = result.getElementsByTagName('div') |
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
// https://chrome.google.com/webstore/detail/scriptautorunner/gpgjofmpmjjopcogjgdldidobhmjmdbm?hl=ja-jp | |
const refURL = location.href | |
const sliceURL = refURL.indexOf("ref") ? refURL.slice(0,refURL.indexOf("ref")) : refURL | |
const amazonUrlCopyButton = document.createElement("button") | |
amazonUrlCopyButton.addEventListener('click', () => navigator.clipboard.writeText(sliceURL)) | |
amazonUrlCopyButton.textContent = "URLをコピー" | |
amazonUrlCopyButton.classList.add("a-button", "a-button-primary", "a-button-small") | |
amazonUrlCopyButton.style.width="120px" |
OlderNewer