Default msbuild property files for my projects
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
@echo off | |
(for %%i in ( | |
"Mango 1" | |
"Orange 2" | |
"Cherries 3" | |
"Apple 4" | |
) do @echo %%~i) | sort |
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 "memfile.h" | |
#include <tchar.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <windows.h> | |
#include <io.h> | |
#include <fcntl.h> | |
#include <process.h> |
Collection of batch script utilities.
Excutes a command for each line in the input file. Uses for
but allows you to pipe in the file.
Prints the number of lines in the input file.
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 <cstdio> | |
#include <optional> | |
#include <memory> | |
#include <set> | |
std::optional<int> foo() | |
{ | |
return {}; | |
} |
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 <cstdio> | |
#include <iterator> | |
template <class T> | |
class value_iterator : public std::iterator<std::random_access_iterator_tag, T> | |
{ | |
public: | |
value_iterator(T v) | |
: m_v(std::move(v)) | |
{ |
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
@echo off | |
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION | |
prompt $G$S | |
set BAR_A=######################################## | |
set BAR_B=%BAR_A:#=_% | |
set BAR_S=40 | |
set C=500 | |
echo. | |
for /L %%i in (0,1,%C%) do ( | |
call :progress %%i %C% |
Cpp utilities.
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 <charconv> | |
#include <type_traits> | |
#include <cwctype> | |
// ----- | |
// Helper alias templates | |
template<typename T> | |
using EnableIfIntegral = std::enable_if_t<std::is_integral<T>::value, bool>; |
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
#define _ATL_APARTMENT_THREADED | |
#include <atlbase.h> | |
#include <atlwin.h> | |
class CMainWnd : | |
public CWindowImpl<CMainWnd, CWindow, CFrameWinTraits> | |
{ | |
public: | |
static LPCTSTR GetWndCaption() |
NewerOlder