Skip to content

Instantly share code, notes, and snippets.

View untodesu's full-sized avatar
💣
アイウエオ > アエイオウ

Kirill Dmitrievich untodesu

💣
アイウエオ > アエイオウ
View GitHub Profile
@untodesu
untodesu / sntdef.h
Last active December 9, 2018 17:27
Usual typedefs collections. Git fun, m8
/**********************************************************************
Simple Integer/etc nums types definition header for C/C++
Git fun, m8. Made by UND85D in 2018
***********************************************************************/
#ifndef SNTYPES_HEADER
#define SNTYPES_HEADER
#if (('1234' >> 24) == '1') /* If system IS Little Endian aka Low Endian aka Intel's shit
(Thousand two hundred thirty four is 4321) */
@untodesu
untodesu / bagbacontroller.cs
Created December 19, 2018 13:16
Space Engineers BAGBA1 Main GATE Controller
/*
* The BAGBA1 Gate Controller Script
* Made by UND85D/undbsd
* Fully(I think) auto
*
* Main Part of BAGBA1 Controller System
*
* btw BAGBA = BBA
*/
@untodesu
untodesu / bagbaring.cs
Created December 19, 2018 13:17
Space Engineers BAGBA1 Single ring GATE Controller
/*
* The BAGBA1 Ring Controller Script
* Made by UND85D/undbsd
* Fully(I think) auto
*
* Part of BAGBA1 Controller System
*
* btw BAGBA = BBA
*/
@untodesu
untodesu / git-prompt.sh
Created May 2, 2019 14:16
For windows git bash
# Git-Prompt.SH
# Rewritten by ESUVSTAHT (undbsd)
## Window Title
PS1="\[\033]0;$MSYSTEM\007\]"
## Command Greeting
### Append username@hostname
PS1="$PS1"'\033[1;32m'
PS1="$PS1$(whoami)@$(uname -n)"
@untodesu
untodesu / undtech_index.txt
Last active August 19, 2019 19:15
Space engineers ship indexing
[] [] [][] [][] [][][] [][][] [][][] [] []
[] [] [] [] [] [] [] [] [] [] []
[] [] [] [] [] [] [] [][] [] [][][]
[] [] [] [] [] [] [] [] [] [] []
[][] [] [] [][][] [] [][][] [][][] [] []
--> The UNDTECH Vessel Index
Any vessel ever produced or constructed by UNDTECH has a unique vessel index.
@untodesu
untodesu / hud_bitmapnumericdisplay.cpp
Created August 27, 2019 07:17
Source SDK HL2 Beta sprite HUD implementation.
#include "cbase.h"
#include "hud_bitmapnumericdisplay.h"
#include "iclientmode.h"
#include <Color.h>
#include <KeyValues.h>
#include <vgui/ISurface.h>
#include <vgui/ISystem.h>
#include <vgui/IVGui.h>
#root "C:/Steam/SteamApps/Common/Half-Life/valve/sound/"
//=========================================
//COMBINE SOLDIER/METROCOP SEQUENCES
//=========================================
$sequence cstest : combine_s {
$play on1
$batch alert1, anticitizenone
//Stack element
class stackElement {
private:
//Data field, contains pointer to uint64_t, double or std::string
void *data;
//Size of data
size_t size;
//Have we already set value or not?
//The V16 Virtual Machine
//Licensed under the "BSD-2-Clause" License
#ifndef _V16_H
#define _V16_H
//Standard C Header Files
#include <stdint.h>
#include <stddef.h>
@untodesu
untodesu / Vector2D.cs
Last active November 6, 2019 14:26
Vectors.
using System;
namespace Aux2D.Shared.MathTypes
{
/// <summary>
/// 2-Dimensional vector.
/// </summary>
class Vector2D
{
/// <summary>