Skip to content

Instantly share code, notes, and snippets.

View Izay0i's full-sized avatar
What form of power is this?

Izay0i Izay0i

What form of power is this?
View GitHub Profile
using Azure.Storage.Blobs;
using Microsoft.AspNetCore.Mvc;
using System.IO;
namespace BlobStorageAPI.Controllers
{
[ApiController]
[Route("api/[controller]")]
public class ImageController : ControllerBase
{
// removes the shifting of the arm when crouching down.
cl_viewmodel_shift_left_amt "0"
cl_viewmodel_shift_right_amt "0"
cl_bob_lower_amt "0"
cl_bobamt_lat "0.1"
cl_bobamt_vert "0.1"
cl_bobcycle "0.1"
#Use CMake for syntax highlight
[MAINTHEMES]
#UINT...
#An array of IDs, see Audio::AudioType
[/]
[SCENESIZE]
#UINT UINT
#Width #Height
[/]
enum class GameObjectType {
//Players
GAMEOBJECT_TYPE_MARIO = 0,
GAMEOBJECT_TYPE_LUIGI = 1,
//NPCs
GAMEOBJECT_TYPE_GOOMBA = 100,
GAMEOBJECT_TYPE_PARAGOOMBA = 101,
GAMEOBJECT_TYPE_KOOPA = 102,
GAMEOBJECT_TYPE_PARAKOOPA = 103,
GAMEOBJECT_TYPE_PIRANHAPLANT = 104,
#include <iostream>
#include <vector>
#include <cmath>
class Polynomial {
private:
int base, var;
std::vector<int> constants;
char signature;
public:
@Izay0i
Izay0i / PageReplacement.c
Created April 25, 2021 22:00
Page replacement algorithm in C
#include <stdio.h>
#include <stdlib.h>
int default_seq[] = { 1, 8, 5, 2, 0, 3, 9, 8, 0, 0, 7 }, seq[100], frames[100];
int seq_size, frame_size, page_faults;
char hit_pf[100];
const char* indent = " ";
const int default_len = sizeof(default_seq) / sizeof(default_seq[0]);
//0: true 1: false
@Izay0i
Izay0i / Main.java
Created April 25, 2021 21:59
Tic-tac-toe in Java
import java.util.Random;
import java.util.Scanner;
public class Main {
//Create input stream
protected static final Scanner scanner = new Scanner(System.in);
//Random generator
protected static Random random = new Random();
private static int range = 3;