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
/// <summary> | |
/// 字节数组转16进制字符串 | |
/// </summary> | |
/// <param name="bytes"></param> | |
/// <returns></returns> | |
public static string byteToHexStr(byte[] bytes) | |
{ | |
string returnStr = ""; | |
if (bytes != null) | |
{ |
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
/// <summary> | |
/// 字符串转16进制字节数组 | |
/// </summary> | |
/// <param name="hexString"></param> | |
/// <returns></returns> | |
private static byte[] strToToHexByte(string hexString) | |
{ | |
hexString = hexString.Replace(" ", ""); | |
if ((hexString.Length % 2) != 0)hexString += " "; | |
byte[] returnBytes = new byte[hexString.Length / 2]; |
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
/// <summary> | |
/// 从汉字转换到16进制 | |
/// </summary> | |
/// <param name="s"></param> | |
/// <param name="charset">编码,如"utf-8","gb2312"</param> | |
/// <param name="fenge">是否每字符用逗号分隔</param> | |
/// <returns></returns> | |
public static string ToHex(string s, string charset, bool fenge) | |
{ | |
if ((s.Length % 2) != 0) |
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
I use the first | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
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
#!bash.exe | |
export SSH_AUTH_SOCK=/tmp/.ssh-socket | |
echo ; | |
echo Starting connection with ssh-agent... | |
ssh-add -l 2>&1 >/dev/null | |
if [ $? = 2 ]; then | |
rm -f /tmp/.ssh-script /tmp/.ssh-agent-pid /tmp/.ssh-socket | |
# Exit status 2 means couldn't connect to ssh-agent; start one now | |
echo Creating new ssh-agent... | |
ssh-agent -a $SSH_AUTH_SOCK > /tmp/.ssh-script |
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
#define MAXSIZE 20 | |
#include <iostream.h> | |
void main() | |
{ | |
int input=0; //用于输入作业号 | |
int worknum=0; //输入的作业个数 | |
int storesize=0; //系统分配的存储区块数 | |
int interrupt=0; //缺页中断次数 | |
int stack[MAXSIZE]; //栈,LRU算法的主要数据结构 |
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
/** | |
* genpac 2.0.1 https://github.com/JinnLynn/genpac | |
* Generated: 2018-04-11 16:48:55 | |
* GFWList Last-Modified: 2018-04-09 12:19:42 | |
* GFWList From: online[https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt] | |
*/ | |
var proxy = 'SOCKS5 127.0.0.1:1080'; | |
var rules = [ | |
[ |
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
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
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
// | |
// Created by suzumiya on 8/29/19. | |
// | |
#include <stack> | |
using namespace std; | |
int partition(int * a, int left, int right) | |
{ |
OlderNewer