Skip to content

Instantly share code, notes, and snippets.

View umair-mirza's full-sized avatar

Umair Mirza umair-mirza

View GitHub Profile
@umair-mirza
umair-mirza / gist:15612cb6cb5f22efbcf80f930b059850
Created September 12, 2021 19:56
Suspense API Challenge solution
import { Suspense, useState } from 'react';
const SuspensefulUserProfile = ({ userId }) => {
const resource = fetchUserProfile(userId);
return (
<Suspense fallback={<h1>Loading profile...</h1>}>
<UserProfile data={resource} />
</Suspense>
@metaphore
metaphore / HqnxEffect.java
Last active September 7, 2023 10:05
[libGDX] HQX (HQ2X, HQ3X, HQ4X) upscaling filter implementation (Java and Kotlin) using GLSL shaders.
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.*;
import com.badlogic.gdx.graphics.VertexAttributes.Usage;
import com.badlogic.gdx.graphics.glutils.FrameBuffer;
import com.badlogic.gdx.graphics.glutils.ShaderProgram;
import com.badlogic.gdx.utils.Disposable;
import com.badlogic.gdx.utils.GdxRuntimeException;
/**