Skip to content

Instantly share code, notes, and snippets.

View umair-mirza's full-sized avatar

Umair Mirza umair-mirza

View GitHub Profile
@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;
/**
@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>
{"embeddings": [{"tensorName": "WebVectors", "tensorShape": [300, 7], "tensorPath": "https://gist.githubusercontent.com/akutuzov/136cb30927e6a3d451bcd55f8df6a355/raw/8941096d42a5b5bf1f4e8d6ec9b06ea2a8f50278/MOD_enwiki_upos_skipgram_300_2_2021_ce9a3ede578d090c5ff3840ef9dd3b69_tsne_tensor.tsv", "metadataPath": "https://gist.githubusercontent.com/akutuzov/40202c5c9354439470aab17d99e0e0b7/raw/34e3661b64eeb683834cf2e3c33fde1a137dfe51/MOD_enwiki_upos_skipgram_300_2_2021_ce9a3ede578d090c5ff3840ef9dd3b69_tsne_metadata.tsv"}]}
@wotakuro
wotakuro / WebGLUtility.cs
Last active January 4, 2023 08:40
Unity WebGLUtility
using UnityEngine;
using UnityEditor;
using System;
using System.Reflection;
namespace UTJ
{
public class WebGLUtility
{
private static Type httpServerEditorWrapperType;
@gengarizzy
gengarizzy / Ejercicio2.java
Created January 4, 2023 06:06
Ejercicio2JavaFunciones
package Ejercicio2Funciones;
import java.util.Scanner;
public class Ejercicio2 {
public static void main(String[] args) {
//TOMO EL PRECIO Y EL IVA MEDIANTE LA CONSOLA
nix-env failed:
error: anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/development/compilers/gcc/9/default.nix:1:1 called with unexpected argument 'enableExternalBootstrap'
at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:80:16:
79| let
80| result = f origArgs;
| ^
81|
@juanemael
juanemael / metadata.json
Last active January 9, 2023 13:18
Marlowe Meet 1 - 3
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]}
// Publish publishes a message to a topic
func (b *Agent) Publish(topic string, msg string) {
b.mu.Lock()
defer b.mu.Unlock()
if b.closed {
return
}
for _, ch := range b.subs[topic] {

Benchmark was compiled using the following compiler:

GCC version 12.2.0

Benchmark was compiled with the following options:

-mabi=lp64d -mcpu=sifive-s76 -misa-spec=20191213 -march=rv64ifd_zicsr -O3 -ffree-line-length-none -fpre-include=/usr/include/finclude/riscv64-linux-gnu/math-vector-fortran.h
@vlazar-
vlazar- / rjesenje1.html
Created January 24, 2023 11:48
JavaScript - prijestupna godina
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prijestupna Godina</title>
</head>