Skip to content

Instantly share code, notes, and snippets.

@Oaz
Oaz / 3dbox.py
Created September 11, 2025 13:04
A 100% vibe-coded 3D box display from three 2D images (front, top and side)
import sys
import numpy as np
from PIL import Image
import pygame
from pygame.locals import *
from OpenGL.GL import *
from OpenGL.GLU import *
class Box3D:
def __init__(self, top_image_path, front_image_path, side_image_path):
public struct Ressources
{
public readonly int Or;
public readonly int Bois;
public readonly int Pierre;
public static Ressources Vides
{
get { return new Ressources(); }
}
public struct Ressources
{
public readonly int Or;
public readonly int Bois;
public readonly int Pierre;
public static Ressources Vides
{
get { return new Ressources(); }
}
@Oaz
Oaz / gist:4078099
Created November 15, 2012 11:19
Scrum en action...
using System;
class Kskills
{
static void Main()
{
var nombreDePointsInitial = int.Parse(Console.ReadLine());
if( nombreDePointsInitial == 75 )
Console.WriteLine(4);
else if( nombreDePointsInitial == 154 )
@Oaz
Oaz / DistancesAndSurfaces.cs
Created July 5, 2012 09:57
Distance and Surfaces in C# with extension methods
using NUnit.Framework;
namespace SandBox
{
[TestFixture]
public class DistanceAndSurfaces
{
[Test]
public void Test()
{
@Oaz
Oaz / gist:2829565
Created May 29, 2012 17:10
get last version of TextMate 2 once again
#!/usr/bin/env ruby
require "open-uri"
require "FileUtils"
def with_resource(url)
begin
resource = open(url)
yield resource.status, resource
rescue OpenURI::HTTPError => the_error