Skip to content

Instantly share code, notes, and snippets.

View vczh's full-sized avatar
📝
Actively making GacUI 2.0

vczh

📝
Actively making GacUI 2.0
View GitHub Profile
#include <variant>
#include <type_traits>
// =================================================================
template<typename ...TArgs>
struct WhateverTypes
{
template<typename TOp>
auto operator |(TOp op)
@echo off
if not exist %appdata%\DarkSoulsIII goto NODS3INSTALLED
pushd %~dp0
echo Found DarkSoulsIII save in %appdata%\DarkSoulsIII
rd /S /Q DarkSoulsIII
xcopy /S /I %appdata%\DarkSoulsIII DarkSoulsIII
echo Backup succeeded
popd
pause
goto FINISHED
#include <iostream>
#include <functional>
#include <string>
#include <vector>
using namespace std;
class Interceptor
{
using THandler = function<void(string, function<void(string)>)>;
@vczh
vczh / xinz_expr_gen.cpp
Last active August 30, 2021 07:23
邹欣的四则运算问题
#include <stdlib.h>
#include <time.h>
#include <iostream>
#include <set>
#include <stack>
#include <string>
#include <algorithm>
using namespace std;
@vczh
vczh / ThePrime41_3.cpp
Created December 1, 2016 07:05
The Prime 41 (3)
#include <iostream>
#include <type_traits>
using namespace std;
const int Max = 1000000;
bool isPrime[Max];
int primes[Max] = { 0 };
int primeCount = 0;
@vczh
vczh / ThePrime41_2.cpp
Created December 1, 2016 06:50
The Prime 41 (2)
#include <iostream>
#include <type_traits>
using namespace std;
const int Max = 1000;
bool isPrime[Max];
int primes[Max] = { 0 };
int primeCount = 0;
@vczh
vczh / ThePrime41.cpp
Created December 1, 2016 06:29
The prime 41
#include <iostream>
#include <type_traits>
using namespace std;
const int Max = 1000;
bool isPrime[Max];
int primes[Max] = { 0 };
int primeCount = 0;
@vczh
vczh / gist:fb5a6554d68c1333f4d314f678d0b658
Created April 3, 2016 11:24
Dynamic Window (workflow)
================================(1/2)================================
using presentation::controls::Gui*;
using presentation::elements::Gui*Element;
using presentation::compositions::Gui*Composition;
using presentation::compositions::Gui*;
using presentation::templates::Gui*;
using system::*;
using system::reflection::*;
using presentation::*;
using presentation::Gui*;
<Resource>
<Script name="ViewModelScript">
<Workflow-ViewModel>
<![CDATA[
module script;
interface IViewModel
{
func GetX() : int;
func SetX(value : int) : void;
@vczh
vczh / SimpleCalculator
Last active December 29, 2015 15:39
Simple Calculator
#include "calc.h"
bool Char(const char*& input, char c)
{
if(*input==c)
{
input++;
return true;
}
return false;