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
@echo off | |
SET AppKey=SublimeText3 | |
SET AppTitle=Sublime Text 3 | |
SET AppPath=D:\Program Files\st\sublime_text.exe | |
SET AppIcon=%AppPath%,0 | |
REG ADD "HKEY_CLASSES_ROOT\*\shell\%AppKey%" /ve /f /d "%AppTitle%" | |
REG ADD "HKEY_CLASSES_ROOT\*\shell\%AppKey%" /v "Icon" /f /d "%AppIcon%" | |
REG ADD "HKEY_CLASSES_ROOT\*\shell\%AppKey%\command" /ve /f /d "%AppPath% \"%%1\"" |
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
:: Ensure the two sublime text folders are moved into drobox first. | |
:: Sublime text uses links to work. | |
mklink /j "D:\Program Files\st3\Data\Packages" "E:\Dropbox\st\Data\Packages" | |
mklink /j "D:\Program Files\st3\Data\Installed Packages" "E:\Dropbox\st\Data\Installed Packages" | |
:: Dropbox uses links to sync vs code. | |
:: In vs code, custom keymap should be done with keybindings.json, otherwise they won't be saved to dropbox. | |
mklink /j "E:\Dropbox\code\User" "%appdata%\Code\User" | |
mklink /j "E:\Dropbox\code\.vscode" "%USERPROFILE%\Code\.vscode" |
NewerOlder