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
import signal | |
import sys | |
user_stop = False | |
def signal_handler(sig, frm): | |
global user_stop | |
user_stop = True | |
signal.signal(signal.SIGINT, signal_handler) | |
# signal.pause() |
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
'。?!,、;:“”‘’( ) [ ] { }——……《 》〈 〉.·— ____/' |
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
/* | |
date: 2022/8/7 23:34 | |
*/ | |
export default function (str) { | |
const garbageSpaces = [ | |
'\u00A0', // No-Break Space | |
'\u3000', // ideographic space | |
'\u2000', // En quad space | |
'\u2001', // Em quad space | |
'\u2002', // En space |
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
import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'; | |
... | |
app.on('ready', () => { | |
const mainWindow = createWindow() | |
if (process.env.mode === 'development') { | |
installExtension(VUEJS_DEVTOOLS) | |
.then((name) => console.log('installed ', name)) | |
.catch((err) => console.log('An error occurred: ', err)); | |
const ses = mainWindow.webContents.session |
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
/* css reset */ | |
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
font: inherit; | |
font-size: 100%; | |
vertical-align: baseline; | |
} |
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
{"lastUpload":"2020-03-09T14:58:32.697Z","extensionVersion":"v3.4.3"} |
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
# frozen_string_literal: true | |
# https://pintia.cn/problem-sets/17/problems/260 | |
# input example: 19 * | |
# output example: | |
# ***** | |
# *** | |
# * | |
# *** | |
# ***** |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
// -------- edit | |
{ | |
"key": "ctrl+shift+up", | |
"command": "editor.action.moveLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+down", |
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
Show hidden characters
{ | |
"presets": [ | |
[ | |
"env", | |
{"modules": false} | |
], | |
["stage-3"] | |
], | |
"plugins": ["transform-runtime"], | |
"env": { |
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
/** | |
* Insert <text> to <areaId>, then [selectedText] will be selected. | |
* | |
* @export module.insertAtCaret | |
* @param {string} areaId - ID of textarea | |
* @param {string} text - text to be inserted | |
* @param {string} [selectedText=undefined] - a sub string of param <text>, | |
* will be selected after insertion, and also be replaced by the current selected text in textarea | |
*/ | |
export function insertAtCaret (areaId, text, selectedText = undefined) { |
NewerOlder