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
| 常规 | |
| 勾选【显示行号】 | |
| 勾选【在剪贴板保留换行符】(就算文档是 LF 换行符,复制到记事本中也可以正常换行) | |
| 文件 | |
| 勾选【优先选择 UTF-8】(打开 GBK 的英文文档时,会提升到 UTF-8 编码) | |
| 被其他程序更改时 - 自动重新载入 | |
| 勾选【换行符不一致时进行提示】 | |
| 新建文件... |
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
| import base64 | |
| import os | |
| string = input('> ') | |
| encodestr = base64.b64encode(string.encode('utf-8')) | |
| print(str(encodestr, 'utf-8')) |
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
| import gulp from 'gulp'; | |
| import browserSync from 'browser-sync'; | |
| import sass from 'gulp-sass'; | |
| import pug from 'gulp-pug'; | |
| // import gulpLoadPlugins from 'gulp-load-plugins'; | |
| // import del from 'del'; | |
| // const $ = gulpLoadPlugins(); | |
| const server = browserSync.create(); |
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
| function copyToClipboard( text ){ | |
| var copyDiv = document.createElement('div'); | |
| copyDiv.contentEditable = true; | |
| document.body.appendChild(copyDiv); | |
| copyDiv.innerHTML = text; | |
| copyDiv.unselectable = "off"; | |
| copyDiv.focus(); | |
| document.execCommand('SelectAll'); | |
| document.execCommand("Copy", false, null); | |
| document.body.removeChild(copyDiv); |
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
| (** User Mathematica initialization file **) | |
| System`clear := Clear["Global`*"] | |
| System`clc := | |
| Module[{obj}, obj = EvaluationCell[]; | |
| SelectionMove[obj, All, Notebook]; NotebookDelete[]; "clc"] | |
| SetOptions[$FrontEndSession, Magnification -> 1.5] | |
| SetAttributes[Derivative, Protected] |
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 axios = require('axios'); | |
| const fs = require('fs'); | |
| axios.defaults.baseURL = 'https://vcb-s.nmm-hd.org'; | |
| const visitedLinks = []; | |
| const files = []; | |
| async function getURL(url) { | |
| if (visitedLinks.includes(url)) return; |
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 ProgressBar = require('./progress-bar'); | |
| const pb = new ProgressBar('下载进度', 50); | |
| let num = 0, | |
| total = 200; | |
| function download() { | |
| if (num <= total) { | |
| pb.render({ completed: num, total }); | |
| ++num; |
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
| VS Code 扩展列表 | |
| Anaconda Extension Pack - Visual Studio Marketplace | |
| https://marketplace.visualstudio.com/items?itemName=ms-python.anaconda-extension-pack | |
| Bracket Pair Colorizer 2 - Visual Studio Marketplace | |
| https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2 | |
| C/C++ - Visual Studio Marketplace | |
| https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools |
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 python3 | |
| # -*- coding: utf-8 -*- | |
| import asyncio | |
| import base64 | |
| import hashlib | |
| import json | |
| import random | |
| import sys | |
| import time |
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
| chcp 65001 | |
| cd /d "C:\Users\Foair\Coding\Project\twinkle" | |
| REM 必须使用 cmd 命令,不然在 yarn.cmd 会退出 | |
| cmd /c "C:\Program Files (x86)\Yarn\bin\yarn.cmd" build | |
| cd dist | |
| git init | |
| git add . | |
| git commit -m update | |
| git remote add origin git@100.0.4.69:logsapling/school_index_back.git | |
| git push -f origin HEAD:back |