Skip to content

Instantly share code, notes, and snippets.

🍙
nano!

nekko1119 nekko1119

🍙
nano!
View GitHub Profile
View result.cpp
#include <variant>
#include <memory>
#include <stdexcept>
#include <iostream>
template <typename T, typename E = std::exception>
struct result {
using value_type = T;
using error_type = std::shared_ptr<E>;
View dxcoroutine.cpp
#include <DxLib.h>
#include <experimental/generator>
class App {
char input[256];
public:
std::experimental::generator<int> update() {
while (ProcessMessage() == 0) {
GetHitKeyStateAll(this->input);
ClearDrawScreen();
View ミリシタ楽曲追加履歴.md

初期曲

Brand New Theater!
THE IDOLM@STER
ココロがかえる場所
Blue Symphony
Sentimental Venus
Marionetteは眠らない
View dxrx.cpp
#include <DxLib.h>
#include <rx.hpp>
class Input {
char input[256];
rxcpp::subjects::subject<int> zInput;
public:
void update() {
GetHitKeyStateAll(this->input);
View winhttp_async_get.cpp
//WinHttpでHTTP通信を行う
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <winhttp.h>
#include <iostream>
#include <sstream>
#include <vector>
#pragma comment(lib, "Winhttp.lib")
View abspath2relpath.cpp
#include <iostream>
#include <regex>
#include <string>
#include <sstream>
#include <vector>
std::vector<std::string> split(std::string const& target, std::regex const& pattern)
{
std::sregex_token_iterator first{target.begin(), target.end(), pattern, -1};
std::sregex_token_iterator last;
View codeconvert.cpp
#include <codecvt>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <locale>
#include <string>
#include <system_error>
#include <vector>
#include <Windows.h>
View io_monado.cpp
#include <iostream>
#include <string>
struct unit_t {} unit = {};
template <typename T>
auto putStrLn(T const& value) {
return [&]() {
std::cout << value << std::endl;
return unit;
View system_error.cpp
#include <winerror.h>
#include <system_error>
#include <iostream>
#include <string>
int main()
{
std::system("chcp 932");
std::error_code ec{ERROR_FILE_EXISTS, std::system_category()};
std::system_error se{ec};
View gitconfig
core.editor=code --wait
user.name=nekko1119
user.email=taku50501119@gmail.com
gui.encoding=utf-8
rebase.autosquash=true
You can’t perform that action at this time.