Skip to content

Instantly share code, notes, and snippets.

View andrewmd5's full-sized avatar
💭
🖤

andrew andrewmd5

💭
🖤
View GitHub Profile
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://json.schemastore.org/bebop",
"title": "JSON schema for the Bebop compiler's configuration file",
"type": "object",
"properties": {
"generators": {
"$ref": "#/definitions/generatorsDefinition/properties/generators"
},
"include": {
@andrewmd5
andrewmd5 / README.md
Last active May 30, 2023 19:57
decipher this text, get $100

Can you crack the secret message hidden within this cipher? I've taken a phrase and encoded it into a string of words that look like "meatball". It's a bit tricky, but I believe in your skills!

Cipher Text:

mEaTbALLmEAtBALLmEATbALL, mEATBalLmEAtBALLmEATbAlL mEAtbalLmEATbaLlmEAtbAlL mEATbaLLmEATbAlLmEATballmEAtbAlLmEATbaLl mEATbaLLmEAtBAlLmEAtbalLmEATbaLlmEATbAll! mEaTbALLmEAtbalLmEAtBALlmEATbAll mEAtbalL mEAtBaLlmEAtBALLmEAtbaLl? mEaTbALLmEAtbAlL'mEATbaLlmEAtbAlL mEAtBallmEAtBalLmEATbaLlmEAtBalLmEAtBALlmEAtbALL: mEAtbalLmEAtBALlmEAtbAllmEATbaLlmEAtbAlLmEATbALL@mEAtbaLlmEAtbAlLmEATbAllmEATbALLmEAtBalLmEATBallmEATbAllmEAtBAllmEAtbalLmEAtbaLlmEATbaLL.mEAtbaLLmEAtBALLmEAtBAlL

Prize

@andrewmd5
andrewmd5 / AsciiChecker.cs
Created March 15, 2023 18:28
Detect if a byte-array or ReadOnlySpan<byte> contains only ASCII characters
using System;
using System.Buffers;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
using System.Runtime.Intrinsics.X86;
using System.Text;
namespace idk
{
@andrewmd5
andrewmd5 / example.ts
Created February 7, 2022 17:43
Convert JSON to and from Bebop
#!/usr/bin/env node
import * as fs from "fs";
import * as ts from "typescript";
import { checkSchema } from "bebop-tools";
import path = require("path");
import child_process = require("child_process");
let usage = [
"",
@andrewmd5
andrewmd5 / DelegateBuddy.cs
Created February 6, 2022 02:46
A rough implementation of how you can create your own methods similar to that of Minimal APIs mapping function with arbitrary delegates
using System.Reflection;
using Gateway.Core.Http.Models;
using Microsoft.AspNetCore.Http;
namespace Gateway.Core.Utils;
internal static class DelegateBuddy
{
private static readonly NullabilityInfoContext NullabilityContext = new();
@andrewmd5
andrewmd5 / knytt.bin.rs
Created July 29, 2019 08:28
Tiny Rust program to parse a knytt.bin file, printing its contents.
use std::collections::HashMap;
use std::fs::File;
use std::io::Read;
fn main() -> std::io::Result<()> {
if let Ok(mut file) =
File::open("E:/Knytt Stories/Test/Drakkan - Training Groundv3rev.knytt.bin")
{
let mut files = HashMap::new();

Borderless Gaming Individual Contributor License Agreement

Thank you for your interest in contributing to open source software projects (“Projects”) made available by Andrew Sampson. This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Andrew Sampson in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact [email protected].

You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.

Copyright License. You hereby grant, and agree to grant, to Andrew Sampson a non-exclusive, perpetual, irrevoca

Rainway Individual Contributor License Agreement

Thank you for your interest in contributing to open source software projects (“Projects”) made available by Rainway, Inc or its affiliates (“Rainway”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Rainway in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact [email protected].

You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.

Copyright License. You hereby grant, and agree to grant, to Rainway a non-exclusive, perpet

var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) {
document.getElementById("demo").innerHTML = xhttp.responseText;
}
};
xhttp.open("POST", "http://app.strangergif.com:8084/gifs", true);
xhttp.setRequestHeader("Content-type", "application/json");
xhttp.send('{"phrase":"Hello World"}');
package me.aurous.ui.handlers;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
import javafx.application.Platform;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.control.ButtonType;