Skip to content

Instantly share code, notes, and snippets.

View softyoda's full-sized avatar

softyoda softyoda

View GitHub Profile
@jboner
jboner / latency.txt
Last active June 16, 2025 19:28
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@zeffii
zeffii / pygments deal with escape.py
Created September 29, 2012 13:48
dirty string literal escape in pygments
"""
BEGIN GPL LICENSE BLOCK
(c) Dealga McArdle 2012 / blenderscripting.blogspot / digitalaphasia.com
This program is free software; you may redistribute it, and/or
modify it, under the terms of the GNU General Public License
as published by the Free Software Foundation - either version 2
of the License, or (at your option) any later version.
@Meatplowz
Meatplowz / FBX_Scene.py
Last active June 10, 2025 09:08
This is a wrapper FBX class useful in accessing and modifying the FBX Scene
"""
MIT License
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@adnanelhb
adnanelhb / Sam-Altman-Fireside-StationFParis.md
Last active June 17, 2023 16:45
A conversation with OpenAI's CEO Sam Altman - Hosted by Station F (Paris) - Verbatim

A conversation with OpenAI's CEO Sam Altman - Hosted by Station F (Paris) - Verbatim

Sam Altman at Station F - 26 May 2023
Sam Altman at Station F - 26 May 2023 - Image source: the author

I was privileged to attend a Fireside chat with Sam Altman, OpenAI’s CEO, on May 26 at Station F in Paris. This conversation was moderated by Roxanne Varza, the Director of Station F. For those unable to attend, I've compiled a selection of verbatim questions from the session in an easy-to-navigate format.

While Sam Altman’s European tour is covered in the press, I think it can be interesting to present the 'raw' conversations on these topics that can clearly be of public interest. Some headlines may give the impression that Altman's positions are inconsistent. But, actually listening to Altman, whether or not you agree with all his views (I don't), it is clear he’s not just spouting nonsense wherever he goes

@sergiobd
sergiobd / Dockerfile
Created September 4, 2023 07:46
Dockerfile for 3D Gaussian splatting
## Unofficial Dockerfile for 3D Gaussian Splatting for Real-Time Radiance Field Rendering
## Bernhard Kerbl, Georgios Kopanas, Thomas Leimkühler, George Drettakis
## https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/
# Use the base image with PyTorch and CUDA support
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel
# NOTE:
# Building the libraries for this repository requires cuda *DURING BUILD PHASE*, therefore:
@jo-chemla
jo-chemla / kapture-cropper.py
Last active March 5, 2025 18:28
Quick utility to crop a kapture images and adapt intrinsics
# py kapture-cropper.py -i dataset-kapture\ --border_px 0 --scale_factor 1 -v
import kapture
import kapture.io.csv as csv
from PIL import Image
from kapture.io.csv import kapture_to_dir
import os, logging, argparse
import kapture.utils.logging
logger = logging.getLogger("kapture-cropper")
@JayFoxRox
JayFoxRox / index.md
Last active December 11, 2024 16:33
3D Gaussian Splatting

Notes about gsplat / 3DGS: 3D Gaussian Splatting (~WIP)

I'm planning to turn this into an "awesome-gsplat" repository (https://github.com/sindresorhus/awesome) or a wiki on some repository.

Feel free to add comments to this gist for now.

I'm contiuining to update this, and will hopefully get to reformatting it with thumbnails and further information (especially on performance and capabilities of implementations).