This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from abc import ABC, abstractmethod | |
from collections.abc import Callable, Iterable | |
from typing import cast, override, Protocol, Self | |
from random import choice, choices, random | |
from heapq import nsmallest, heapify, heappush, heappop | |
from math import sqrt | |
import csv | |
class Comparable(Protocol): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configuration { | |
/* modes: "window,drun,run,ssh";*/ | |
/* font: "mono 12";*/ | |
/* location: 0;*/ | |
/* yoffset: 0;*/ | |
/* xoffset: 0;*/ | |
/* fixed-num-lines: true;*/ | |
/* show-icons: false;*/ | |
/* terminal: "rofi-sensible-terminal";*/ | |
/* ssh-client: "ssh";*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compile with (linux) gcc -std=c11 -Ofast -lcglm -lm -fopenmp raytracing-weekend.c | |
// dependencies: cglm (available on AUR), openmp (probably already installed on ur system) | |
#include <cglm/vec3.h> | |
#include <inttypes.h> | |
#include <math.h> | |
#include <stdbool.h> | |
#include <stddef.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"contact": "", | |
"templates": [ | |
{ | |
"name": "akira", | |
"sources": [ | |
"https://media.discordapp.net/attachments/1132280154010423397/1133098114601979905/Untitled130_20230724210636.png?width=80&height=40" | |
], | |
"x": 2895, | |
"y": 1191 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hololive combo | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Spread the love | |
// @author oralekin | |
// @match https://hot-potato.reddit.com/embed* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name osu! Logo template | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description try to take over the canvas! | |
// @author oralekin, LittleEndu, ekgame | |
// @match https://hot-potato.reddit.com/embed* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
//Bai cua nhom: | |
template<typename T> | |
inline T input(const char* help) { | |
T value; | |
std::cout << help; std::cin >> value; | |
return value; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dah.scene3d.test; | |
import com.dah.scene3d.utils.BetterShader; | |
import com.dah.scene3d.utils.BetterShaderBuilder; | |
import com.dah.scene3d.utils.GLSLPlusProcessor; | |
import de.javagl.obj.Obj; | |
import de.javagl.obj.ObjReader; | |
import de.javagl.obj.ObjUtils; | |
import lengine.engine.Context; | |
import lengine.engine.mesh.Mesh; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lightningstrike.glfw.chaincb; | |
import java.util.*; | |
import org.lwjgl.glfw.*; | |
import org.lwjgl.system.CallbackI; | |
public abstract class ChainCallback<CB extends CallbackI.V> extends LinkedList<CB> implements CallbackI.V { | |
@Override | |
public void callback(long args) { |