Skip to content

Instantly share code, notes, and snippets.

View CorneliaXaos's full-sized avatar

Cornelia Xaos CorneliaXaos

  • United States
View GitHub Profile
@CorneliaXaos
CorneliaXaos / NumericTypeBitWidths.cpp
Created April 11, 2017 07:17
Prints out the bit width of all the fundamental numeric types in C++
#include <iostream>
#include <iomanip>
int main() {
std::cout << "Size of (in bits):" << std::endl <<
" bool: " << std::setw(2) << sizeof(bool) * 8 << " bits" << std::endl <<
" char: " << std::setw(2) << sizeof(char) * 8 << " bits" << std::endl <<
" char16_t: " << std::setw(2) << sizeof(char16_t) * 8 << " bits" << std::endl <<
" char32_t: " << std::setw(2) << sizeof(char32_t) * 8 << " bits" << std::endl <<
" wchar_t: " << std::setw(2) << sizeof(wchar_t) * 8 << " bits" << std::endl <<
@CorneliaXaos
CorneliaXaos / issue.py
Last active December 18, 2019 08:36
Demonstrates a Possible Issue with the Flask Test Client
from flask import Flask, Blueprint
app = Flask(__name__)
bp = Blueprint("test", __name__)
@bp.route("/test/")
def test():
return "TEST"
app.register_blueprint(bp, subdomain="test")