This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# References: | |
# WHOI TECHNICAL MEMORANDUM 3-81 | |
# Roark's Formulas for Stress and Strain, 7th Edition | |
mpa_per_foot_sw = 0.003033693 | |
mpa_hy_steel_youngs_modulus = 207000 | |
hy_steel_poissons_ratio = 0.30 | |
mpa_hy80_yield_strength = 550 | |
mpa_hy100_yield_strength = 900 | |
in_ssn21_beam = 41 * 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[build] Starting build | |
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build c:/Users/nicke/source/repos/C11-Fibers/build/Debug --config Debug --target all -- -j 14 | |
[build] [1/2 50% :: 0.042] Building C object CMakeFiles\main.dir\src\test.c.obj | |
[build] FAILED: CMakeFiles/main.dir/src/test.c.obj | |
[build] C:\PROGRA~1\LLVM\bin\clang-cl.exe /nologo -I..\..\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\main.dir\src\test.c.obj /FdCMakeFiles\main.dir\ -c ..\..\src\test.c | |
[build] In file included from ..\..\src\test.c:2: | |
[build] In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\stdlib.h:12: | |
[build] In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:10: | |
[build] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\include\vcruntime.h(326,20): error: __declspec attributes must be an identifier or string literal | |
[build] __declspec(noreturn) void __ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inspired by https://github.com/cogu/cfile | |
c_indent_char = '\t' | |
def set_indent_char(char): | |
global c_indent_char | |
c_indent_char = char | |
class blank: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Midway upon the journey of our life | |
# I found myself within a forest dark, | |
# For the straight-forward pathway had been lost. | |
import cfile as c | |
mcd_typemap = {} | |
def mc_data_name(typename): | |
def inner(cls): | |
mcd_typemap[typename] = cls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _DEFAULT_SOURCE | |
#include <endian.h> | |
#undef _DEFAULT_SOURCE | |
#include "cNBT/nbt.h" | |
#include "datautils.h" | |
#include "sds.h" | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ClientboundCombatEvent : public Packet { | |
public: | |
std::int64_t event; | |
std::int64_t duration; | |
std::int64_t playerId; | |
std::int32_t entityId; | |
std::string message; | |
ClientboundCombatEvent(); | |
void encode(std::ostream &dest); | |
void decode(std::istream &src); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This file was generated by mcd2cpp.py | |
It should not be edited by hand. | |
*/ | |
#include "proto_1_16_1.hpp" | |
namespace mcd { | |
const char* serverbound_handshaking_cstrings[] = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef RKR_VEC3_HPP | |
#define RKR_VEC3_HPP | |
#include <array> | |
#include <cstdint> | |
#include <immintrin.h> | |
#include <stdalign.h> | |
#include <stdexcept> | |
#include <string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef NBT_HPP | |
#define NBT_HPP | |
#include "byteswap.hpp" | |
#include <bit> | |
#include <concepts> | |
#include <cstdint> | |
#include <iostream> | |
#include <map> | |
#include <optional> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lastArg = args[args.length - 1] | |
let act = await fromUuid(lastArg.actorUuid) | |
let calmData = { | |
"changes": [{ "key": "macro.itemMacro", "mode": 0, "value": 0, "priority": 20 }], | |
"origin": lastArg.origin, | |
"icon": "systems/dnd5e/icons/skills/red_02.jpg", | |
"label": "Berserker Calm", | |
"transfer": true, | |
"flags": { | |
"dae": { |