Skip to content

Instantly share code, notes, and snippets.

View MartinRGB's full-sized avatar
🎯
Focusing

MartinRGB MartinRGB

🎯
Focusing
View GitHub Profile
@MartinRGB
MartinRGB / BlurImageView
Last active April 17, 2018 18:03 — forked from bartektrail/BlurImageView.java
BlurImageView allows to dynamically blur an image and smoothly pass from sharp to fully blurred image. It's extended ImageView.
collection head
@MartinRGB
MartinRGB / BlurImageView
Last active February 22, 2023 11:24 — forked from bartektrail/BlurImageView.java
BlurImageView allows to dynamically blur an image and smoothly pass from sharp to fully blurred image. It's extended ImageView.
collection head
@MartinRGB
MartinRGB / DeviceDetectUtil
Last active April 26, 2018 09:07 — forked from Muyangmin/DeviceDetectUtil.java
detect android device info, MIUI version, etc.
collection head
@MartinRGB
MartinRGB / Pixi.js Smoke Shader
Last active May 20, 2021 15:06 — forked from OmarShehata/Pixi.js Smoke Shader
Example of smoke shader in Pixi.js
collection head
// by d whyte
int[][] result;
float t;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
// by davey whyte aka @beesandbombs
void setup(){
size(600,520,P3D);
colorMode(HSB,1);
noStroke();
}
float R = 160, r = 55;
int N = 720;
@MartinRGB
MartinRGB / MyLWPService.java
Created March 28, 2019 03:32 — forked from iangilman/MyLWPService.java
Android WallpaperService with WebView
import android.content.BroadcastReceiver;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.graphics.Canvas;
import android.graphics.Point;
import android.preference.PreferenceManager;
import android.service.wallpaper.WallpaperService;
import android.content.Context;
import android.support.v4.content.LocalBroadcastManager;
@MartinRGB
MartinRGB / ae_graph_drawing.js
Last active November 14, 2019 08:51
AE_Graph_Drawing
// ############ create slider for holding value ############
valueProgress = 100 - (transform.[property].key(2).value - transform.[property])/
(transform.[property].key(2).value-transform.[property].key(1).value)*100;
// (time - startTime) / (endTime - startTime)
timeProgress = (time - transform.[property].key(1).time)/(transform.[property].key(2).time - transform.[property].key(1).time)*100;
Math.max(0,Math.min(100,progress));
@MartinRGB
MartinRGB / app.html
Created January 10, 2021 07:17 — forked from bellbind/app.html
[electron]Use electron as a Web Server
<!doctype html>
<html><head><script src="app.js"></script></head><body></body></html>
@MartinRGB
MartinRGB / RaspberryPi_CM4_External_GPU_Guide.md
Last active September 2, 2023 11:24
Raspberry Pi CM4 External GPU Guide

If you want to get more information, I suggest you browse raspberry-pi-pcie-devices and its issue.

My use case and hardware used

Use cases

| CM4 IO Board(Official) | CM4-IO-BASE-A(Waveshare) |