Skip to content

Instantly share code, notes, and snippets.

View Pikachuxxxx's full-sized avatar
🎩
lol

Phani Srikar Pikachuxxxx

🎩
lol
View GitHub Profile

Bit Manipulation Cheatsheet (C++)

Operators

Bitwise And --> &

Bitwise Or --> |

Bitwise xor --> ^

@codecat
codecat / use_wxwidgets.lua
Created February 16, 2020 16:45
wxWidgets Premake5
-- NOTE:
-- This script was taken from: https://wiki.wxwidgets.org/Premake4
-- And modified by Miss to fix some issues and work with Premake5
--
-- Use like:
-- flags "WinMain"
-- configuration "Debug"
-- wx_config { Root=WX_DIR, Debug="yes", Static="yes", Unicode="yes", Version="3.1", Libs="core,adv,gl,aui,propgrid" }
-- configuration "Release"
-- wx_config { Root=WX_DIR, Debug="np", Static="yes", Unicode="yes", Version="3.1", Libs="core,adv,gl,aui,propgrid" }
@caiorss
caiorss / gui-without-winmain.cpp
Created December 11, 2018 16:13
Minimal Windows GUI Program for Win32 API without WinMain - https://caiorss.github.io/C-Cpp-Notes/WindowsAPI-cpp.html#orgc3f65d8
// File: gui-without-winmain.cpp
// Brief: Minimal Windows GUI Program for Win32 API without WinMain.
// Author: Caio Rodrigues
//--------------------------------------------------------------------------------------
#include <iostream>
#include <string>
#include <windows.h>

Core Coding Standard

Coding practices are a source of a lot of arguments among programmers. Coding standards, to some degree, help us to put certain questions to bed and resolve stylistic debates. No coding standard makes everyone happy. (And even their existence is sure to make some unhappy.) What follows are the standards we put together on the Core team, which have become the general coding standard for all programming teams on new code development. We’ve tried to balance the need for creating a common, recognizable and readable code base with not unduly burdening the programmer with minor code formatting concerns.

Table Of Contents

@mbinna
mbinna / effective_modern_cmake.md
Last active September 5, 2025 06:36
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@tterb
tterb / README-badges.md
Last active August 19, 2025 18:32
A collection of README badges

Badges

License

MIT License GPLv3 License AGPL License

Version

Version GitHub Release

@sinbad
sinbad / LightFlickerEffect.cs
Last active September 12, 2025 13:44
Unity simple & fast light flicker script
using UnityEngine;
using System.Collections.Generic;
// Written by Steve Streeting 2017
// License: CC0 Public Domain http://creativecommons.org/publicdomain/zero/1.0/
/// <summary>
/// Component which will flicker a linked light while active by changing its
/// intensity between the min and max values given. The flickering can be
/// sharp or smoothed depending on the value of the smoothing parameter.
@AdelDima
AdelDima / .zshrc
Last active August 31, 2025 04:38
Cygwin & oh-my-zsh
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster"