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 March 26, 2025 04:15
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 April 7, 2025 11:05
A collection of README badges

Badges

License

MIT License GPLv3 License AGPL License

Version

Version GitHub Release

@sinbad
sinbad / LightFlickerEffect.cs
Last active March 29, 2025 02:16
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.
@tadija
tadija / FontNames-iOS-17.4.swift
Last active January 11, 2025 00:45
iOS - All Font Names
/*
*** Academy Engraved LET ***
AcademyEngravedLetPlain
---------------------
*** Al Nile ***
AlNile
AlNile-Bold
---------------------
*** American Typewriter ***
AmericanTypewriter