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
--- Actions --- | |
$Copy <M-C> | |
$Cut <M-X> <S-Del> | |
$Delete <Del> <BS> <M-BS> | |
$LRU | |
$Paste <M-V> | |
$Redo <M-S-Z> <A-S-BS> | |
$SearchWeb <A-S-G> | |
$SelectAll <M-A> | |
$Undo <M-Z> |
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
#! /bin/sh | |
baseName=$(basename $0) | |
usage() { | |
echo Usage: ./$baseName cmd concurrent | |
exit 127 | |
} | |
cmd="$1" | |
concurrent=$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
bool isBase64(std::string s) { | |
int len = s.length(); | |
//长度必须是4的倍数 | |
if (len % 4 != 0) { | |
return false; | |
} | |
//去掉末尾= | |
while (s[len-1] == '=') len--; | |
//所有的字符必须是 0-9 a-z A-Z + / | |
for (int i = 0; i < len; i++) { |
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
#include <iostream> | |
#include <stdio.h> | |
#include <string> | |
#include <map> | |
#include <algorithm> | |
using namespace std; | |
struct Node { | |
Node() : value(0), next(NULL) {} |