Skip to content

Instantly share code, notes, and snippets.

View lmariscal's full-sized avatar
🫖
418

Leonardo Mariscal lmariscal

🫖
418
View GitHub Profile
@lmariscal
lmariscal / leo@ldmd.mx.pgp
Created December 7, 2020 04:51
leo@ldmd.mx.pgp
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEXrdSgBYJKwYBBAHaRw8BAQdAnHxKwzQ6sMAcEcDU/OPs8CTAVlnRg2j3iCEM
xG4Q1ga0H0xlb25hcmRvIE1hcmlzY2FsIDxsZW9AbGRtZC5teD6IjgQTFgoANhYh
BLMwIx3BjpFcvoEpM5bOgxcHIHSfBQJet1KAAhsDBAsJCAcEFQoJCAUWAgMBAAIe
AQIXgAAKCRCWzoMXByB0n78RAQD4X6q/vDeRJRCJtDF63Dw8e1kpAd8dfevnBUUh
2uI30wD7BhO4RXTUCebr/1/r+q7g0TK9D4pv6k2/a1AYvhAWTwO4OARet1KAEgor
BgEEAZdVAQUBAQdAaavByids3jXKXtNAPIf9AOZ3ZjKdVNHIgUAEwmnuZloDAQgH
iHgEGBYKACAWIQSzMCMdwY6RXL6BKTOWzoMXByB0nwUCXrdSgAIbDAAKCRCWzoMX
ByB0n6C8AP9fKh6W8lWYeptpzdzxc1jnVOC+E24webvR44OrXT+v5gD/Z+PxjIXd
set(triple "x86_64-scei-ps4")
set(CMAKE_SYSTEM_NAME "FreeBSD")
set(CMAKE_C_COMPILER "clang")
set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_C_COMPILER_AR "ar")
set(CMAKE_LINKER "clang")
set(CMAKE_ASM_COMPILER "clang")
set(CMAKE_FIND_ROOT_PATH "$ENV{PS4SDK}/usr" CACHE STRING "")
https://youtu.be/-C-JoyNuQJs?t=39m45s
When I put the reference implementation onto the website I needed to
put a software license on it.
And I looked at all the licenses that were available, and there were a lot
of them. And I decided that the one I liked the best was the MIT License,
which was a notice that you would put on your source and it would say,
"you're allowed to use this for any purpose you want, just leave the
notice in the source and don't sue me."
@caiorss
caiorss / CMakeLists.txt
Created November 27, 2020 14:05
QuickJS engine sample project - shows how to embedded in C++
cmake_minimum_required(VERSION 3.9)
project(QuickJS-Experiment)
#========== Global Configurations =============#
#----------------------------------------------#
set( CMAKE_CXX_STANDARD 17 )
set( CMAKE_VERBOSE_MAKEFILE ON )
set( CMAKE_CXX_EXTENSIONS OFF)
@dmglab
dmglab / git_bible.md
Last active March 9, 2024 02:59
how to git

Note: this is a summary of different git workflows putting together to a small git bible. references are in between the text


How to Branch

try to keep your hacking out of the master and create feature branches. the [feature-branch workflow][4] is a good median between noobs (i have no idea how to branch) and git veterans (let's do some rocket sience with git branches!). everybody get the idea!

Basic usage examples

@demotomohiro
demotomohiro / Hotcodereloading_with_glfw_ sample.md
Created February 4, 2020 16:17
Nim's hot code reloading with GLFW sample

Tested this sample with Nim 1.0.6 on Windows 8.1

  1. Install Nim Game Library
nimble install nimgl
  1. Get glfw3.dll Go to GLFW web site, go to Download page and download Windows pre-compiled binaries. Unzip it and copy glfw3.dll to where you run sample program.
@bkaradzic
bkaradzic / orthodoxc++.md
Last active April 23, 2024 13:59
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@ocornut
ocornut / imgui_node_graph_test.cpp
Last active April 23, 2024 19:02
Node graph editor basic demo for ImGui
// Creating a node graph editor for Dear ImGui
// Quick sample, not production code!
// This is quick demo I crafted in a few hours in 2015 showcasing how to use Dear ImGui to create custom stuff,
// which ended up feeding a thread full of better experiments.
// See https://github.com/ocornut/imgui/issues/306 for details
// Fast forward to 2023, see e.g. https://github.com/ocornut/imgui/wiki/Useful-Extensions#node-editors
// Changelog
// - v0.05 (2023-03): fixed for renamed api: AddBezierCurve()->AddBezierCubic().

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

#pragma once
#include "IconsFontAwesome.h" // from https://github.com/juliettef/IconFontCppHeaders
namespace ImGui
{
inline void SetupImGuiStyle( bool bStyleDark_, float alpha_ )
{