Skip to content

Instantly share code, notes, and snippets.

Warpten

  • France
Block or report user

Report or block Warpten

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Warpten
Warpten / vk.cpp
Created Nov 5, 2019
vk::DynamicLoader without pulling Windows.h everywhere
View vk.cpp
#include "vk.hpp"
#include <Windows.h>
namespace vk
{
DynamicLoader::DynamicLoader() : m_success(false)
{
#if defined(__linux__)
m_library = dlopen("libvulkan.so", RTLD_NOW | RTLD_LOCAL);
View mesing-around-with-ref-return.cs
using System;
public interface Base {
int Property { get; }
void Mutate(int someValue);
}
public struct SuperA : Base {
public int Property { get; private set; }
View excluded-namespaces.diff
diff --git a/src/BenchmarkDotNet.Disassembler.x64/Program.cs b/src/BenchmarkDotNet.Disassembler.x64/Program.cs
index c5b71018..5ccb567b 100644
--- a/src/BenchmarkDotNet.Disassembler.x64/Program.cs
+++ b/src/BenchmarkDotNet.Disassembler.x64/Program.cs
@@ -20,7 +20,7 @@ namespace BenchmarkDotNet.Disassembler
static readonly string[] CallSeparator = { "call" };
static readonly Dictionary<string, string[]> SourceFileCache = new Dictionary<string, string[]>();
- // the goals of the existence of this process:
+ // the goals of the existence of this process:
View gist:9f57ef7e15ca6305462558bb45c7aaf0
#include "box.hpp"
#include "object.hpp"
#include "predictor_corrector.hpp"
#include "calculator.hpp"
#include "extensions.hpp"
#include "logger.hpp"
#include <cassert>
#include <iostream>
#include <random>
View gist:bf6e5370df63e781a6fe6bf80cf034ee
#include "box.hpp"
#include "object.hpp"
#include "predictor_corrector.hpp"
#include "calculator.hpp"
#include "extensions.hpp"
#include "logger.hpp"
#include <cassert>
#include <iostream>
#include <random>
View gist:96e0bf6fd83a89222a7fcb801908868d
#include "box.hpp"
#include "object.hpp"
#include "predictor_corrector.hpp"
#include "calculator.hpp"
#include "extensions.hpp"
#include "logger.hpp"
#include <cassert>
#include <iostream>
#include <random>
View qfqwf
MODULE CONSTANTS
IMPLICIT NONE
INTEGER, PARAMETER :: dp = SELECTED_REAL_KIND(16)
REAL(KIND = dp), PARAMETER :: PI = 3.1415926536_dp
REAL(KIND = dp), PARAMETER :: BOLTZMANN = 1.38064852E-23_dp ! J/K
REAL(KIND = dp), PARAMETER :: EPS = 1.65E-21_dp ! J
REAL(KIND = dp), PARAMETER :: M = 6.6335209E-26_dp ! kg
REAL(KIND = dp), PARAMETER :: SIGMA = 3.4E-10_dp ! m
View gist:618408e4c5b69ea69011
Unable to open file DBFilesClient\CreatureSpellData in the archive for locale frFR: FILE_NOT_FOUND
Unable to open file DBFilesClient\DeclinedWord in the archive for locale frFR: FILE_NOT_FOUND
Unable to open file DBFilesClient\DeclinedWordCases in the archive for locale frFR: FILE_NOT_FOUND
Unable to open file DBFilesClient\FeedbackPath in the archive for locale frFR: FILE_NOT_FOUND
Unable to open file DBFilesClient\Package in the archive for locale frFR: FILE_NOT_FOUND
Unable to open file DBFilesClient\SkillTiers in the archive for locale frFR: FILE_NOT_FOUND
Unable to open file DBFilesClient\gtAttackPower in the archive for locale frFR: FILE_NOT_FOUND
Unable to open file DBFilesClient\gtAttackPowerRanged in the archive for locale frFR: FILE_NOT_FOUND
Unable to open file DBFilesClient\gtAvoidanceDim in the archive for locale frFR: FILE_NOT_FOUND
Unable to open file DBFilesClient\gtChanceToDodgeBase in the archive for locale frFR: FILE_NOT_FOUND
View shit.diff
commit c905d1a6b7be3d0cdfdab0e8c4db267e01c68684
Author: Warpten <vertozor@gmail.com>
Date: Wed May 27 20:54:57 2015 +0200
Core/NetworkIO: Fixed possible DDoS issue with b5aebf40a8a6f4b480ba2e877451db2ac3dac968
diff --git a/src/server/game/Server/Packets/ChatPackets.cpp b/src/server/game/Server/Packets/ChatPackets.cpp
index 4204278..ab4108b 100644
--- a/src/server/game/Server/Packets/ChatPackets.cpp
+++ b/src/server/game/Server/Packets/ChatPackets.cpp
View PE.cs
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;
using System.IO;
using System.Text;
using System.Linq;
using OpcodeBruter;
namespace x86
You can’t perform that action at this time.