IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。
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
/** | |
veh_hook Vectored Exception Handler hooking library | |
Version: 24-March-2008 | |
**/ | |
#define WINVER 0x0501 | |
#define _WIN32_WINNT 0x0501 | |
#include <windows.h> | |
#include "veh_hook.h" | |
static veh_list_t* list = 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/mman.h> | |
#include <signal.h> | |
#include <execinfo.h> | |
#include<iostream> | |
using namespace std; | |
unsigned char old; | |
unsigned char *inst; |
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
/* compile with: | |
on linux: gcc -g stack_traces.c | |
on OS X: gcc -g -fno-pie stack_traces.c | |
on windows: gcc -g stack_traces.c -limagehlp | |
*/ | |
#include <signal.h> | |
#include <stdio.h> | |
#include <assert.h> |
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<Windows.h> | |
#include <tchar.h> | |
#include <Commctrl.h> | |
#include <Shlwapi.h> | |
#pragma comment(lib,"Shlwapi.lib") | |
typedef void (WINAPI* LPFN_PGNSI)(LPSYSTEM_INFO); |
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 "DetourHook.hpp" | |
#define POWERPC_REGISTERINDEX_R0 0 | |
#define POWERPC_REGISTERINDEX_R1 1 | |
#define POWERPC_REGISTERINDEX_R2 2 | |
#define POWERPC_REGISTERINDEX_R3 3 | |
#define POWERPC_REGISTERINDEX_R4 4 | |
#define POWERPC_REGISTERINDEX_R5 5 | |
#define POWERPC_REGISTERINDEX_R6 6 | |
#define POWERPC_REGISTERINDEX_R7 7 |
This project is a tiny compiler for a very simple language consisting of boolean expression.
The language has two constants: 1
for true and 0
for false, and 4 logic gates:
!
(not), &
(and), |
(or), and ^
(xor).
It can also use parentheses to manage priorities.
Here is its grammar in BNF format:
expr ::= "0" | "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
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include <iomanip> | |
#include <ctime> | |
#include <map> | |
// 函数:将月份缩写转换为数字 | |
int monthToNumber(const std::string& month) { | |
static std::map<std::string, int> monthMap = { |