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
module EdgeSync ( | |
input clk, | |
input nReset, | |
input in, | |
output rise, | |
output fall, | |
output logic out |
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
#include <fcntl.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
// None of these headers are available in xv6, in xv6 you only need to the | |
// "user.h" header | |
/** | |
* @brief Prints a region of memory to stdout as hex digits |
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
async function applyDivineFury(token, tactor, tokenId, type, origin) { | |
let damage = ` + (1d6 + ${(args[1] / 2) | 0})[${type}]` | |
let duration; | |
if (game.combat) { | |
duration = { | |
startRound: game.combat.round, | |
rounds: 0, | |
turns: 1 | |
} |
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
#include "logger.hpp" | |
vea::Logger VEA_SIMPLE_LOGGER; | |
namespace vea { | |
const char* lvl_strings[] {"trace", "debug", "info", "warn", "fatal"}; | |
Logger::Logger(const std::string& name) : name(name) {} |
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": { |
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
#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
/* | |
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
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
#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> |
NewerOlder