Code Snippets Diff

Short texts Diff 🧑‍💻 Code snippets Diff ✍️ Reading lists Diff 👀

Dual Head fbdev SDL hack

// Access both /dev/fb0 and /dev/fb1 with SDL // Uses dlmopen to load a separate libSDL in another dynamic loader namespace #define _GNU_SOURCE #include #include typedef int (*SDL_Init_t)(Uint32); typedef SDL_Surface *(*SDL_SetVideoMode_t)(int, int, int, Uint32); typedef int (*SDL_Flip_t)(SDL_Surface *); typedef void (*SDL_Quit_t)(void); typedef int (*putenv_t)(char *); typedef char *(*SDL_GetError_t)(void); typedef int (*SDL_ShowCursor_t)(int); #define WIDTH 640 #define […]

0001-build-don-t-look-for-Iconv.patch

From ee84578b9413545ca80337fcb00683cd2f84b10c Mon Sep 17 00:00:00 2001 From: miyasaja Date: Fri, 15 Oct 2021 13:53:38 +0900 Subject: [PATCH] build: don’t look for Iconv This change is based on the following patch. base recipe: meta-oe/recipes-devtools/doxygen/doxygen_1.8.15.bb base branch: warrior base commit: a24acf94d48d635eca668ea34598c6e5c857e3f8 I modified it for doxygen source in Debian buster. — CMakeLists.txt | 4 —- 1 […]

Diff between SDK 42 & SDK 43 AppDelegate.m for user reference when updating dangerous Expo config plugins

diff –git a/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h index 1a1a48f662..f7d2972042 100644 — a/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h +++ b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h @@ -1,10 +1,9 @@ #import -#import #import #import -#import +#import [email protected] AppDelegate : UMAppDelegateWrapper [email protected] AppDelegate : EXAppDelegateWrapper @end diff –git a/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m index d7da3a9556..1b72e8cf15 100644 — a/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m +++ b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m @@ -4,12 +4,7 @@ #import #import #import – -#import -#import -#import -#import -#import +#import […]

Diff between SDK 42 & SDK 43 AppDelegate.m for user reference when updating dangerous Expo config plugins

diff –git a/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h index 1a1a48f662..f7d2972042 100644 — a/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h +++ b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h @@ -1,10 +1,9 @@ #import -#import #import #import -#import +#import [email protected] AppDelegate : UMAppDelegateWrapper [email protected] AppDelegate : EXAppDelegateWrapper @end diff –git a/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m index d7da3a9556..1b72e8cf15 100644 — a/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m +++ b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m @@ -4,12 +4,7 @@ #import #import #import – -#import -#import -#import -#import -#import +#import […]

Diff between SDK 42 & SDK 43 AppDelegate.m for user reference when updating dangerous Expo config plugins

diff –git a/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h index 1a1a48f662..f7d2972042 100644 — a/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h +++ b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h @@ -1,10 +1,9 @@ #import -#import #import #import -#import +#import [email protected] AppDelegate : UMAppDelegateWrapper [email protected] AppDelegate : EXAppDelegateWrapper @end diff –git a/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m index d7da3a9556..1b72e8cf15 100644 — a/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m +++ b/templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.m @@ -4,12 +4,7 @@ #import #import #import – -#import -#import -#import -#import -#import +#import […]