Skip to content

Instantly share code, notes, and snippets.

View fdrobidoux's full-sized avatar
📚
Working on a ReactJS certification!

Félix Dion-Robidoux fdrobidoux

📚
Working on a ReactJS certification!
View GitHub Profile
@fdrobidoux
fdrobidoux / ComplexRpgEvent.cs
Last active March 2, 2024 20:19
AdA2 - Idea for making better events
using Ada2.Engine.Services;
using Ada2.RpgModule.Scripting;
using Ada2.RpgModule.Services.Abstractions;
using Monofoxe.Engine.EC;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
@fdrobidoux
fdrobidoux / FizzBuzz.cs
Created January 12, 2024 19:27
C# Implementation of a FizzBuzz coding test
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
@fdrobidoux
fdrobidoux / Whacky_Joe_9.spritefont
Created January 25, 2023 17:20
Whacky Joe - Font Description for MonoGame
<?xml version="1.0" encoding="utf-8"?>
<!--
This file contains an xml description of a font, and will be read by the XNA
Framework Content Pipeline. Follow the comments to customize the appearance
of the font in your game, and to change the characters which are available to draw
with.
-->
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
<Asset Type="Graphics:FontDescription">
@fdrobidoux
fdrobidoux / Usage.cs
Created June 22, 2021 17:08
ValueRestorer - Restores a value from within a IEnumerator-based Coroutine.
namespace Ada2.Scripting
{
public static class Usage
{
public static IEnumerator TestEnumeration()
{
var component = service.Entity.GetComponent<ValueComponent>();
// When enumerator destroyed, will be disposed, which will restore to the original value.
using var valueRestorer = new ValueRestorer()
@fdrobidoux
fdrobidoux / Startup.cs
Created May 11, 2021 14:45
Add static files in ASP.NET Core 3.1
// IWebHostEnvironment _env;
public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
{
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(Path.Combine(_env.ContentRootPath, "Images")),
RequestPath = "/images"
});
}
@fdrobidoux
fdrobidoux / EntityGuy.cs
Created November 8, 2019 19:21
[SadConsole] Example of how to implement a custom Entity with animations defined in `GlyphDefinition`
using System;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Graphics;
using SadConsole;
using SadConsole.Entities;
using SadInput = SadConsole.Input;
using static SadConsole.FontMaster;
namespace TextAdventure.Core.Entities
{
@fdrobidoux
fdrobidoux / hexagon-theory.txt
Created February 20, 2020 20:16
Hexagon theory
radius = 16
width: 16x2 = 32
half-height: sin(60)*16 = 13.856
height: 13.856*2 = 27.712
@fdrobidoux
fdrobidoux / Technical_Debt.md
Last active February 10, 2020 20:58
How to pay technical debt - notes

Technical debt

Make charts

Give data that can be presented that's high-level.

Presentation structure

  • 1-2 Slides
  • Agenda
@fdrobidoux
fdrobidoux / main.rs
Created January 21, 2020 15:46
First time trying out Rust.
use std::io::{ stdout, BufWriter, Error };
use std::result::{ Result };
use ferris_says::say;
fn main() {
println!("Hello, world!");
let _result = test_ferris();
}
fn test_ferris() -> Result<(), Error>