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
| stream.js:94 | |
| throw er; // Unhandled stream error in pipe. | |
| ^ | |
| Error: Command failed: | |
| at ChildProcess.exithandler (child_process.js:637:15) | |
| at ChildProcess.EventEmitter.emit (events.js:98:17) | |
| at maybeClose (child_process.js:735:16) | |
| at Socket.<anonymous> (child_process.js:948:11) | |
| at Socket.EventEmitter.emit (events.js:95:17) | |
| at Pipe.close (net.js:466:12) |
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
| /** | |
| * | |
| * MD5 (Message-Digest Algorithm) | |
| * http://www.webtoolkit.info/ | |
| * | |
| **/ | |
| var MD5 = function (string) { | |
| function RotateLeft(lValue, iShiftBits) { |
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
| #!/usr/bin/env node | |
| const fs = require('fs'); | |
| const messenger = require('@codedungeon/messenger'); | |
| try { | |
| // read package.json as object | |
| const pkgJsonData = JSON.parse(fs.readFileSync('./package.json', 'utf-8')); | |
| // add lint script |
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
| #!/usr/bin/env node | |
| const execa = require('execa'); | |
| const msg = require('@codedungeon/messenger'); | |
| const findMatches = (str = '', findStr = '') => { | |
| const re = new RegExp(findStr, 'g'); | |
| return str.match(re); | |
| }; |
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 = { | |
| extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'], | |
| parser: '@typescript-eslint/parser', | |
| parserOptions: { | |
| ecmaVersion: 2020, | |
| }, | |
| plugins: ['@typescript-eslint'], | |
| root: true, | |
| rules: { | |
| 'no-unused-vars': 'off', |
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 | |
| # syntax | |
| # $ ./test.sh -n # -q # | true | |
| # script colors | |
| YELLOW='\033[1;33m' | |
| LIGHTBLUE='\033[1;36m' | |
| GREEN='\033[1;32m' | |
| NC='\033[0m' |
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 | |
| # | |
| # git-mv-with-history -- move/rename file or folder, with history. | |
| # | |
| # Moving a file in git doesn't track history, so the purpose of this | |
| # utility is best explained from the kernel wiki: | |
| # | |
| # Git has a rename command git mv, but that is just for convenience. | |
| # The effect is indistinguishable from removing the file and adding another | |
| # with different name and the same content. |
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
| <% const today = date.now('YYYY-MM-DD') %> | |
| <%- date.dayNumber(`${today}`) %> |
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
| //test |
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 = { | |
| accepted: "必須接受 :attribute。", | |
| after: ":attribute 必須在 :after 之後。", | |
| after_or_equal: ":attribute 必須跟 :after_or_equal 同一天或是在 :after_or_equal 之後。", | |
| alpha: ":attribute 只能包含字母。", | |
| alpha_dash: ":attribute 只能包含字母,連結號(-)和底線(_)。", | |
| alpha_num: ":attribute 只能包含字母和數字。", | |
| alpha_numeric: ":attribute 只能包含字母和數字。", | |
| array: "The :attribute must be an array", | |
| before: ":attribute 必須在 :before 之前。", |
NewerOlder