Skip to content

Instantly share code, notes, and snippets.

@nikp123
nikp123 / init_window.c
Created May 16, 2021 11:10
Updated "ugly" EGL wayland example to support XDG
// gcc -o test init_window.c -I. -lwayland-client -lwayland-server -lwayland-client-protocol -lwayland-egl -lEGL -lGLESv2
#include <wayland-client-core.h>
#include <wayland-client.h>
#include <wayland-server.h>
#include <wayland-client-protocol.h>
#include <wayland-egl.h> // Wayland EGL MUST be included before EGL headers
#include "xdg-shell-client-protocol.h"
#include "init_window.h"
anonymous
anonymous / c201-kerngen.sh
Created July 30, 2017 04:25
export ARCH=arm
export CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi-
export KERNEL_SERIES=v4.13
export KERNEL_BRANCH=v4.13-rc1
export LOCALVERSION=
export MALI_VERSION=r19p0-01rel0
export MALI_BASE_URL=https://developer.arm.com/-/media/Files/downloads/mali-drivers/kernel/mali-midgard-gpu
export DTB_FILES="
@baines
baines / xkeyexample.c
Last active September 19, 2023 20:53
simple xlib key example
#include <stdio.h>
#include <locale.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
int main(void){
setlocale(LC_ALL, "");
Display* dpy = XOpenDisplay(NULL);
@Miouyouyou
Miouyouyou / MopubFalcon.java
Last active December 9, 2015 23:11
Quick and dirty AdFalcon adapter for MoPub
package your.wonderful.package.name
/* First version : 2015-12-09
To instruct MoPub to use this adapter, You'll have to
- Open the 'Networks' tab
- Add a 'Custom Native Network'
- Put the full class name in 'Custom Class Event'
Example : 'your.wonderful.package.name.MopubFalcon'
When testing, be aware of the geographical restrictions you put on this
network. If you removed geographical restrictions, put them back again