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
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): |
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
public struct Ressources | |
{ | |
public readonly int Or; | |
public readonly int Bois; | |
public readonly int Pierre; | |
public static Ressources Vides | |
{ | |
get { return new Ressources(); } | |
} |
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
public struct Ressources | |
{ | |
public readonly int Or; | |
public readonly int Bois; | |
public readonly int Pierre; | |
public static Ressources Vides | |
{ | |
get { return new Ressources(); } | |
} |
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
using System; | |
class Kskills | |
{ | |
static void Main() | |
{ | |
var nombreDePointsInitial = int.Parse(Console.ReadLine()); | |
if( nombreDePointsInitial == 75 ) | |
Console.WriteLine(4); | |
else if( nombreDePointsInitial == 154 ) |
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
using NUnit.Framework; | |
namespace SandBox | |
{ | |
[TestFixture] | |
public class DistanceAndSurfaces | |
{ | |
[Test] | |
public void Test() | |
{ |
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
#!/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 |