Skip to content

Instantly share code, notes, and snippets.

Avatar

Harold Brenes harold-b

View GitHub Profile
@harold-b
harold-b / IntelGfxUbuntu20.04MacBookPro10-1.md
Last active Jun 25, 2020
Enable Intel Graphics on Ubuntu 20.04 on MacBook Pro Mid 2012 Retina (10,1)
View IntelGfxUbuntu20.04MacBookPro10-1.md

How to get Intel graphics working on MacBook Pro mid 2012 (10,1) Ubuntu 20.04:

Ubuntu was intalled with the default nvidia drivers that it brought (I believe 3.90)

Clone https://github.com/0xbb/apple_set_os.efi

For details, see the README.md

Build it:

@harold-b
harold-b / HaxeJSObject.hx
Last active Jun 20, 2017
Hacky haxe plain javascript object with JS for/in key value loop.
View HaxeJSObject.hx
package;
typedef Union2<T1,T2> = haxe.extern.EitherType<T1,T2>;
abstract JSObject( Dynamic ) from Dynamic to Dynamic
{
public inline function new()
{
this = {};
}
@harold-b
harold-b / dear imgui, selectable popup example
Created Aug 6, 2016
A functional selectable pseudo-popup window example using dear imgui, for use with autocomplete or input history.
View dear imgui, selectable popup example
const int ENTRY_COUNT = 10;
const char* ENTRIES[ENTRY_COUNT] =
{
"Entry 0",
"Entry 1",
"Entry 2",
"Entry 3",
"Entry 4",
"Entry 5",
You can’t perform that action at this time.