<template>
<input :ref="el => elTextArea = el" />
</template>
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 MD_INDEX = 'README' | |
function mdRemoveIndex(path: string, ext = '.md') { | |
if (path.endsWith('/' + MD_INDEX + ext)) { | |
path = path.substring(0, path.length - ext.length - MD_INDEX.length - 1) | |
} | |
return path | |
} |
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
// ==UserScript== | |
// @name markdown-it-plugin for WaniKani Community | |
// @namespace https://community.wanikani.com | |
// @version 0.1 | |
// @description markdown-it-ruby for WaniKani Community. Nothing more than necessary | |
// @author polv | |
// @match https://community.wanikani.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=wanikani.com | |
// @grant none | |
// ==/UserScript== |
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
from decimal import Decimal, getcontext | |
from typing import Union | |
class BigInt: | |
"""BigInt gives astronomically big integer's approximation and easy to read strings""" | |
_first = "" | |
_last = "" | |
_length = None # BigInt |
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
Info 0 [21:34:26.242] Starting TS Server | |
Info 1 [21:34:26.242] Version: 4.0.3 | |
Info 2 [21:34:26.242] Arguments: /usr/share/code/code /home/patarapolw/projects/make-pdf/packages/mdx/.yarn/sdks/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/b3a7d2e0f18b6fdfd22c/tscancellation-1bee301e776227680305.tmp* --logVerbosity verbose --logFile /home/patarapolw/.config/Code/logs/20201006T204449/exthost1/vscode.typescript-language-features/tsserver-log-8QIv8P/tsserver.log --globalPlugins typescript-vscode-sh-plugin --pluginProbeLocations /usr/share/code/resources/app/extensions/typescript-language-features --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation | |
Info 3 [21:34:26.242] Platform: linux NodeVersion: 12 CaseSensitive: true | |
Info 4 [21:34:26.242] ServerMode: undefined syntaxOnly: false hasUnknownServerMode: undefined | |
Info 5 [21:34:26.247] Binding... | |
Info 6 [21:34:26.264] request: | |
{"seq":0,"type" |
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
/** | |
* @see https://docs.mongodb.com/manual/reference/operator/aggregation/sort/ | |
*/ | |
function getType(m: any): number { | |
if (typeof m === 'undefined') { | |
return 0 | |
} else if (typeof m === 'object') { | |
if (!m) { | |
/** | |
* null |
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
// @ts-ignore | |
import { getMetadata } from 'page-metadata-parser' | |
import he from 'he' | |
export function addImagedLinksToTextAreaOnPaste(el: HTMLTextAreaElement) { | |
const pasteEvent = async (ev: ClipboardEvent) => { | |
const { items } = ev.clipboardData || {} | |
if (items) { | |
for (const k of Object.keys(items)) { | |
const item = (items as any)[k] as DataTransferItem |
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
Step 4/18 : COPY packages/web/package.json packages/web/package-lock.json /app/ | |
---> 5fd150936598 | |
Step 5/18 : RUN npm i | |
---> Running in 21fdced2ae4f | |
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/@vue/cli-shared-utils-84f45b3f/LICENSE' | |
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/firebase-1e298806/firebase-auth.js' | |
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/buefy-fca9137d/dist/buefy.esm.js' | |
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/vue-template-compiler-8672be05/index.js' | |
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/cacache-7216ea6a/lib/util/tmp.js' | |
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/vue-template-compiler-8672be05/package.json' |
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
// @title Blueprint Swagger API | |
// @version 1.0 | |
// @description Swagger API for Golang Project Blueprint. | |
// @termsOfService http://swagger.io/terms/ | |
// @contact.name API Support | |
// @contact.email martin7.heinz@gmail.com | |
// @license.name MIT | |
// @license.url https://github.com/MartinHeinz/go-project-blueprint/blob/master/LICENSE |