Skip to content

Instantly share code, notes, and snippets.

💝

Ashley Horton phxvyper

💝
View GitHub Profile
@phxvyper
phxvyper / OrientedRectangleF.cs
Created Feb 27, 2020
Represents a 4-point polygon that is transformable using a transform Matrix.
View OrientedRectangleF.cs
/*
* Based on:
* https://github.com/craftworkgames/MonoGame.Extended/blob/7c8de64caa135eaea39885a99e0e8e706a85bfad/Source/MonoGame.Extended/Math/Matrix2.cs
* https://github.com/craftworkgames/MonoGame.Extended/blob/7c8de64caa135eaea39885a99e0e8e706a85bfad/Source/MonoGame.Extended/Shapes/Polygon.cs
*
* Represents a 4-point polygon that is transformable using a transform Matrix.
*
* Copyright 2020 Ashley Horton
*
View keybase.md

Keybase proof

I hereby claim:

  • I am phxvyper on github.
  • I am ashleymilk (https://keybase.io/ashleymilk) on keybase.
  • I have a public key ASCLyOxvseGFd36DQuK71CL1DvPnRgOifYKgJ_hENI7ZTgo

To claim this, I am signing this object:

View RangeExtensions.cs
using System;
using System.Collections.Generic;
using System.Linq;
using MiscUtil.Collections;
namespace AshTools.Extensions
{
public static class RangeExtensions
{
/// <summary>
View aurora.ashley.css
@import url('https://fonts.googleapis.com/css?family=Satisfy');
@import url("https://ellexidecodes.github.io/Discord-Themes/css/new-tags.css");
::selection {background:var(--main-color-faded) !important;}
/*
/$$$$$$
/$$__ $$
| $$ \ $$ /$$ /$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$
| $$$$$$$$| $$ | $$ /$$__ $$ /$$__ $$ /$$__ $$|____ $$
| $$__ $$| $$ | $$| $$ \__/| $$ \ $$| $$ \__/ /$$$$$$$
| $$ | $$| $$ | $$| $$ | $$ | $$| $$ /$$__ $$
View error.rs
pub fn challenge3() {
let valid_chars: Vec<char> = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,.- ".chars().collect();
let repeated_char_score = 1;
let mut input = String::new();
println!("Single-byte XOR cipher");
print!("encoded string> ");
io::stdout().flush().unwrap();
io::stdin().read_line(&mut input).expect("Failed to read line");
View lang-ideas.rs
// chain matches to the first true case, and then continues to reiterate and match until no cases return true.
let x := chain {
true => 5,
x == 6 => x * 2,
x == 5 => x + 1,
x == 7 => 0
}
View interfaces.cs
class Player : Actor, IHealthy, IAttacker
{
public float MaxHealth { get; }
public float Health { get; private set; }
public float AttackDamage { get; private set; }
public void DealDamage(float damage)
{
Health = Mathf.Clamp(Health - damage, 0f, MaxHealth);
if (Health == 0f)
{
View fragment.glsl
#version 330 core
out vec4 FragColor;
void main()
{
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
}
View issues.md

Issues

In the Moving Forward Project, we leverage Github issues to efficantly translate work done into documentable efforts.

Issue Assignments

In the olde days of chat issues, devs would accept issues that were created by the CS team. Instead, developers assign github issues to themselves and document changes in the comment section, closing the issue upon completion.

Issue Types

View somedargons.js
{
"ScreenName": "some screen name",
// directory of the assets used
// this directory is appended to ./assets/
// so this path would become ./assets/tiles/
"AssetFolder": "tiles/",
"Layers": [
{ // layer 0
"Name": "Layer 0",
"Rows": [
You can’t perform that action at this time.