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
#pragma comment(lib, "winmm") | |
#pragma comment(lib, "ole32") | |
#include <sapi.h> | |
void main() | |
{ | |
HRESULT hr; | |
ISpVoice* pVoice; |
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> | |
#include <string> | |
#include <regex> | |
#include <map> | |
/* | |
* English 2 Korean | |
* from http://www.phpschool.com/link/tipntech/55742 | |
* |
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
/* | |
Monty Hall Simulator by 3735943886 | |
Using Microsft Cryptography APIs for random generations | |
License : GPL | |
*/ | |
#include <iostream> | |
#include <windows.h> | |
#include <wincrypt.h> |
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 <atlbase.h> | |
#include <sapi.h> | |
void main() | |
{ | |
CComPtr<ISpVoice> cpVoice; | |
::CoInitialize(nullptr); | |
cpVoice.CoCreateInstance(CLSID_SpVoice); |
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
#pragma comment(lib, "user32") | |
#pragma comment(lib, "psapi") | |
#include <stdio.h> | |
#include <windows.h> | |
#include <psapi.h> | |
void main() | |
{ | |
HWND hWnd; |
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 <stdio.h> | |
#include <time.h> | |
void GetEorzeaTime(int *eHour, int *eMin) | |
{ | |
/* Get current time */ | |
time_t currentTime; | |
time(¤tTime); | |
/* Convert to Eorzea 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
/* Version 4.06a */ | |
using System.Collections.Generic; | |
namespace Ffxiv | |
{ | |
static public partial class AutoTranslate | |
{ | |
static public IReadOnlyDictionary<ulong, string> EnDict = new Dictionary<ulong, string>() | |
{ | |
/* 【Languages】 */ |
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
from random import random | |
CONST_FAMILIES = 65536 | |
CONST_GENERATIONS = 100 | |
CONST_NATURAL_RATIO = 0.5 | |
# User input data | |
A1 = input('How many families are there? (default ' + str(CONST_FAMILIES) + ')') | |
A2 = input('How many children will one family have? (default ' + str(CONST_GENERATIONS) + ')') |
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
#pragma comment (lib, "ole32") | |
#pragma comment (lib, "oleaut32") | |
#pragma comment (lib, "wbemuuid") | |
#include <stdio.h> | |
#include <windows.h> | |
#include <wbemidl.h> | |
void GetLastInputInfoFromWmi() | |
{ |
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 <windows.h> | |
#include <wtsapi32.h> | |
HANDLE CreateProcessActiveConsole(LPCTSTR app, LPTSTR cmd) | |
{ | |
static HANDLE hToken; | |
static STARTUPINFO si; | |
static PROCESS_INFORMATION pi; | |
ZeroMemory(&si, sizeof(STARTUPINFO)); |
OlderNewer