Skip to content

Instantly share code, notes, and snippets.

View Frityet's full-sized avatar
😁
I have like 60 projects that i am not doing

Frityet

😁
I have like 60 projects that i am not doing
View GitHub Profile
@Frityet
Frityet / H3VRModDLCount.swift
Last active June 21, 2021 08:15
I made this project on a boring car ride. It gets the download information of important H3VR mods and prints them to the console
import Foundation;
import PlaygroundSupport;
//We use async in this program, it needs to go inf
PlaygroundPage.current.needsIndefiniteExecution = true;
///Struct for a Github Asset (file inside the release)
struct GithubReleaseAsset : Decodable {
///Name of the asset
let fileName: String;
$schema: 'http://json-schema.org/draft-07/schema'
$id: https://raw.githubusercontent.com/H3VR-Modding/Mason/v1.0.0/schemas/project/root.json
type: object
title: Mason Project
description: A Mason project
examples:
- version: 1
ignore:
- C10
dependencies:
<?xml version="1.0" encoding="utf-16"?>
<ResourceManifest
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>Example Mod</Name>
<Guid>frityet.example</Guid>
<Assets>
<AssetManifest>
<Type>Texture</Type>
<Target>M1A1</Target>
checking for architecture ... none
configure
{
clean = true
buildir = build
ccache = true
kind = static
arch = none
mode = release
plat = cross
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
CPU Family: 0x6
@Frityet
Frityet / triangle.c
Last active November 30, 2021 20:20
Checks if a triangle is equilateral
#include <stdint.h>
#include <stdbool.h>
#include <math.h>
#include <stdio.h>
typedef struct {
uint16_t x, y;
} vector2_t;
#define POINT(_x, _y) (vector2_t) { .x = (_x), .y = (_y) }
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
[Serializable]
public struct IPv4Address
{
public byte Element1,
Element2,
Element3,
Element4;
public UInt16 Port;
template<typename T, T (*Get_F)(T *), void (*Set_F)(T *, T)>
class Property {
private:
T field_;
public:
explicit Property(T value)
{ this->field_ = value; }
[[nodiscard]]
public unsafe class Memory : IDisposable
{
public int Count { get; private set; }
public int MaxCount { get; private set; }
private byte* _pointer;
public byte[] Bytes
{
get