Skip to content

Instantly share code, notes, and snippets.

View usagi's full-sized avatar
🍣
Sushi

USAGI/USAGI.NETWORK usagi

🍣
Sushi
View GitHub Profile
#include <iostream>
#include <queue>
#include <emscripten/emscripten.h>
#include <emscripten/bind.h>
namespace
{
std::queue<unsigned int> keydown_buffer;
auto cxx_keydown(unsigned int key_code)
#ifdef EMSCRIPTEN
#include <emscripten/emscripten.h>
#include <SDL/SDL.h>
#else
#include <SDL2/SDL.h>
#endif
#include <iostream>
#include <cstdint>
#include <thread>
#include <iostream>
#include <boost/scope_exit.hpp>
// test scope 1
auto main() -> int
{
BOOST_SCOPE_EXIT_ALL()
{ std::cerr << "scope 1 exit 1\n"; };
BOOST_SCOPE_EXIT_ALL()
#include <stdexcept>
#include <boost/scope_exit.hpp>
#ifdef EMSCRIPTEN
#include <GL/glfw.h>
#else
#include <GLFW/glfw3.h>
#endif
namespace
#include <stdexcept>
#include <boost/scope_exit.hpp>
#ifdef EMSCRIPTEN
#include <GL/glfw.h>
#include <emscripten/emscripten.h>
#else
#include <GLFW/glfw3.h>
#endif
#pragma once
// TODO: impl
#include <cassert>
#include <boost/property_tree/ptree.hpp>
int main()
{
using namespace boost::property_tree;
ptree pt;
int x = 123;
#include <iostream>
#include <iomanip>
auto main() -> int
{
std::cout
<< std::setprecision(32)
<< std::fixed
<< 0.123456789012345678901234567890123456789f << "\n"
<< 0.123456789012345678901234567890123456789 << "\n"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/property_tree/ini_parser.hpp>
auto main() -> int
{
using namespace boost::property_tree;
ptree p;
#include <random>
#include <iostream>
#include <iomanip>
#include <vector>
#include <list>
#include <forward_list>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <chrono>