Skip to content

Instantly share code, notes, and snippets.

View s-macke's full-sized avatar

Sebastian Macke s-macke

View GitHub Profile
@s-macke
s-macke / ai4se.md
Last active March 19, 2025 09:06
AI Tools for Software Developers. A comprehensive list.
@s-macke
s-macke / Video-Generation-Tools.md
Last active August 2, 2025 12:18
List of Text To Video Generation Tools
@akella
akella / oklab.glsl
Created October 8, 2023 07:55
oklab.glsl
float fixedpow(float a, float x)
{
return pow(abs(a), x) * sign(a);
}
float cbrt(float a)
{
return fixedpow(a, 0.3333333333);
}
@s-macke
s-macke / gpt-4-tokens.txt
Last active May 20, 2025 19:08
All 100k GPT-4 Tokens. New lines are replaced with \n and carriage returns with \r. The index of the token is (index=line-1). The list is extracted using https://github.com/openai/tiktoken
!
"
#
$
%
&
'
(
)
*
@s-macke
s-macke / Sparks_of_Copilot.html
Last active May 29, 2023 14:50
Playground to test performance of GPT-4 for code handling such as reviews and refactorings. You need an API key for testing.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sparks of Copilot X</title>
<meta charset="utf-8">
<meta name="author" content="Sebastian Macke">
<meta name="description" content="GPT-4 Coding Experiments">
<link href=" https://cdn.jsdelivr.net/npm/[email protected]/css/ace.min.css " rel="stylesheet">
<style>
@rain-1
rain-1 / GPT-4 Reverse Turing Test.md
Last active July 10, 2025 23:15
GPT-4 Reverse Turing Test

The reverse turing test

I asked GPT-4 to come up with 10 questions to determine if the answerer was AI or human.

I provided my own answers for these questions and I also asked ChatGPT to answer them.

The result is that GPT-4 was able to correctly differentiate between AI and Human.

@rain-1
rain-1 / LLM.md
Last active October 20, 2025 07:02
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@s-macke
s-macke / sleepserver.go
Last active September 16, 2022 11:22
Sleep Server in Go. It just sleeps for a given time for any request. Useful for easy mock of backends.
package main
import (
"flag"
"fmt"
"net/http"
"time"
)
var defaultSleepTimeMs *int
@s-macke
s-macke / cloud.wgsl
Created July 19, 2022 19:44
Protean Clouds Shader
/*
Ported shader Protean Clouds
https://www.shadertoy.com/view/3l23Rh
to WGSL
*/
// Protean clouds by nimitz (twitter: @stormoid)
// https://www.shadertoy.com/view/3l23Rh
// License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License
// Contact the author for other licensing options
@s-macke
s-macke / contextperf.c
Last active May 9, 2022 19:40
The code measures the direct and indirect cost (L2 cache misses) of context switches
// compile with
// 'gcc -O2 main.c -o contextperf.c' -lpthread
#define _GNU_SOURCE
#include <stdio.h>
#include <stdint.h>
#include <pthread.h>
#include <sched.h>
#include <unistd.h>