Skip to content

Instantly share code, notes, and snippets.

View DickyDicky7's full-sized avatar
🌴
On vacation at red sea

DickyDicky7

🌴
On vacation at red sea
View GitHub Profile
@DickyDicky7
DickyDicky7 / SimpleRayTracingLocal.vcxproj
Created October 7, 2025 16:40
SimpleRayTracingVisualStudio2022.001
<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> <Configuration>Debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|Win32"> <Configuration>Release</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug|x64"> <Configuration>Debug</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|x64"> <Configuration>Release</Configuration> <Platform>x64</Platform> </ProjectConfiguration> </ItemGroup> <PropertyGroup Label="Globals"> <VCProjectVersion>17.0</VCProjectVersion> <Keyword>Win32Proj</Keyword> <ProjectGuid>{e2865242-55cb-451f-946b-27ebeefa5436}</ProjectGuid> <RootNamespace>SimpleRayTracingLocal</RootNamespace> <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> </PropertyGroup>
Shader "ScreenSpaceShader"
{
SubShader
// SubShader
{
Tags { "RenderType" = "Opaque" "RenderPipeline" = "UniversalPipeline" }
// Tags { "RenderType" = "Opaque" "RenderPipeline" = "UniversalPipeline" }
LOD 100
// LOD 100
ZWrite Off Cull Off
@DickyDicky7
DickyDicky7 / ThreadPool.h
Last active March 20, 2025 04:26
C++ ThreadPool 1
#pragma once
#ifndef THREADPOOL_H
#define THREADPOOL_H
#include <condition_variable>
#include <functional>
#include <mutex>
#include <queue>
#include <thread>
#include <vector>
import { KMPP } from 'k-means-pp';
// import { KMPP } from 'k-means-pp';
const kmpp = new KMPP({
dimension: 3,
// dimension: 3,
data:
// data:
[
[1, 2, 3],
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ImportQualifiedPost #-}
module Trie where
import Data.Map ( Map
)
import Data.IORef ( IORef
)
import Data.Functor ( (<&>)
{-# LANGUAGE GADTs #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
@DickyDicky7
DickyDicky7 / HPFFP.md
Created November 18, 2021 07:37 — forked from DadgadCafe/HPFFP.md
Haskell Programming From First Principles

HASKELL PROGRAMMING FROM FIRST PRINCIPLES

CHAPTER1. ALL YOU NEED IS LAMBDA

1.1 All You Need is Lambda

lambda calculus:

computation model, 1930s, Alonzo Church, formalizing a method, Turing machines