Skip to content

Instantly share code, notes, and snippets.

View noorus's full-sized avatar
⚜️
One hundred percent

Noora noorus

⚜️
One hundred percent
View GitHub Profile
@daaximus
daaximus / create_iso.cpp
Last active February 21, 2023 19:59
create iso using imapi
#include <string>
#include <atlbase.h>
#include <imapi2fs.h>
void create_iso( std::wstring_view src, std::wstring_view iso_path )
{
HRESULT hr;
IFileSystemImage* fsimg;
IFsiDirectoryItem* fsdir;
IFileSystemImageResult* fsresult;
@roxlu
roxlu / CMakeLists.txt
Last active March 9, 2023 07:11
CMake example that shows how you can build Freetype2 with support for Harfbuzz and Harfbuzz with support for Freetype2. This example uses ExternalProject which is the standard way to include external dependencies. Note that we have to patch Freetype2 and Harfbuzz because their CMakelists are not fully CMake compatible (still depend on pkg-config…
# This CMake file will build Freetype and Harfbuzz as external
# projects. We follow the build description as described here:
# https://sourceforge.net/projects/freetype/files/freetype2/2.5.3/ So,
# first we build Freetype2 w/o Harfbuzz, then we build Harfbuzz with
# freetype support after which we rebuild Freetype2 again.
#
# Both CMake files of Freetype2 and Harfbuzz are depending on
# pkg-config to find the dependencies for both projects. I've
# included a patch for Freetype2 and Harfbuzz which allows you to
# build Freetype2 and Harbuzz with pure CMake features. So I removed
@memoz
memoz / sjis-emoticons.txt
Created March 7, 2016 05:23
Randomly collected Shift-JIS emoticons
_(:」∠)_
_(:_」∠)_
_(:з」∠)_
_(:зゝ∠)_
╮( ̄▽ ̄)╭
╮( ̄▽ ̄")╭
╮(╯▽╰)╭
(*・ω・)✄╰ひ╯
╮(╯_╰)╭
(ˉ﹃ˉ)
@technobly
technobly / SparkPWM.cpp
Created January 8, 2014 08:13
SPARK CORE CUSTOM PWM FREQUENCY EXAMPLE Define your own frequency! PWM Glitch issue fixed!!
//-----------------------------------------------
// SPARK CORE CUSTOM PWM FREQUENCY EXAMPLE
//===============================================
// Define your own frequency below!
// PWM Glitch issue fixed, only sets up PWM once,
// ... thereafter sets duty cycle.
// This allows true 0 - 100% PWM.
// Copy this into a new application at:
// https://www.spark.io/build and go nuts!
//-----------------------------------------------