|
Description |
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
| #include <iostream>/* | |
| """*/ | |
| using namespace std;//"""""" | |
| /*""" | |
| class ostream: | |
| def __lshift__(self,a): | |
| print(a,end="") | |
| return self | |
| cout=ostream() | |
| endl="\n" |
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
| #include <iostream> | |
| using namespace std; | |
| #define 输出 cout | |
| #define 换行 endl | |
| #define 常量 const | |
| #define 整形 int | |
| #define 等于 = | |
| #define 主函数 main | |
| #define 返回 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
| #! /bin/bash | |
| GIT_COMMIT="Unknown" | |
| if command -v git >/dev/null 2>&1 && git rev-parse --is-inside-work-tree >/dev/null 2>&1; then | |
| GIT_COMMIT=$(git rev-parse --short HEAD) | |
| fi | |
| echo "${GIT_COMMIT}" |
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
| # This line of command has no side effects. | |
| for i in `seq 1 $(cat /proc/cpuinfo |grep "physical id" |wc -l)`; do dd if=/dev/zero of=/dev/null & done | |
| # if you want to stop, please kill them | |
| pkill -9 dd |
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
| g++ -dM -E -x c++ /dev/null | grep -F __cplusplus |
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
| wget -qO- https://deb.nodesource.com/setup_14.x | sudo -E bash - | |
| ## Run `sudo apt-get install -y nodejs` to install Node.js 14.x and npm | |
| ## You may also need development tools to build native addons: | |
| sudo apt-get install gcc g++ make | |
| ## To install the Yarn package manager, run: | |
| curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null | |
| echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
| sudo apt-get update && sudo apt-get install yarn |
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
| // Random user password | |
| function randomPassword(length) { | |
| length = Number(length) | |
| // Limit length | |
| if (length < 6) { | |
| length = 6 | |
| } else if (length > 16) { | |
| length = 16 | |
| } | |
| let passwordArray = ['ABCDEFGHJKLMNPQRSTUVWXYZ', 'ABCDEFGHJKLMNPQRSTUVWXYZ', '23456789', '!@#$%&*()']; |
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
| set nu! | |
| set backspace=2 | |
| set tabstop=4 | |
| set clipboard=unnamed | |
| set smarttab | |
| set shiftwidth=4 | |
| set cin | |
| set mouse=a | |
| syntax on |
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 os | |
| for file in os.listdir('tests'): | |
| filename = file.split('.')[0] | |
| ext = file.split('.')[-1] | |
| new_ext = '' | |
| if ext == 'a': | |
| new_ext = 'out' | |
| else: | |
| new_ext = 'in' |
NewerOlder