Coder Social home page Coder Social logo

misc's Introduction

Miscellaneous small code snippets.

A hierarchy of classes that represent abstract concept of a text-based stream that can be printed into, using methods like print(const char* str), printf(const char* format, ....) etc. Derived classes offer printing to console (standard output), to file, to memory buffer and more.

A simple Windows console C program that demonstrates how to enumerate and change display modes (screen resolution and refresh rate). See my blog post: How to change display mode using WinAPI?.

Simple C program demonstrating multiple solutions to a question: "Write a function that checks whether an integer number is a power of 10." Contains a set of tests. See my blog post: How to check if an integer number is a power of 10?.

Simple C++ console program that tests how long it takes to call WinAPI function QueryPerformanceCounter. See my blog post: When QueryPerformanceCounter call takes long time.

Simple, single-header, C++ library for Vulkan that simplifies writing 32-bit markers to a buffer that can be read after graphics driver crash and thus help you find out which specific draw call or other command caused the crash, pretty much like NVIDIA Aftermath library for Direct3D 11/12. See my blog post: Debugging Vulkan driver crash - equivalent of NVIDIA Aftermath.

Simple Python script that parses given text file to find the list of files included by it using #include <FileName> or #include "FileName", recursively. Supports -I parameter for additional include directories. Supports any programming language that uses C-like preprocessor, e.g. C, C++, HLSL, GLSL.

Shortcomings: ► Doesn't parse comments or perform full preprocessing, so includes commented out using multiline comment /* ... */ or macros like #if 0 are still parsed. ► File names are case-sensitive, so files includes with different capitalization are treated as separate.

misc's People

Contributors

sawickiap avatar

Stargazers

Krzysztof Kondrak avatar Alec Miller avatar king avatar  avatar  avatar  avatar Too large to fit in the margin avatar Chen Tao avatar Chao avatar yangyangyang avatar ACskyline avatar Julian Xhokaxhiu avatar  avatar  avatar AndreyVK_D3D avatar Khawar Shehzad avatar Donghyun Kim avatar  avatar  avatar Sergey Cherepanoff avatar Nick Lion avatar Dietmar Suoch avatar Rob Jones avatar Artem Kharytoniuk avatar

Watchers

 avatar

misc's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.