Skip to content

Instantly share code, notes, and snippets.

Avatar
🇦🇹

Raphael Baier Algo-ryth-mix

🇦🇹
View GitHub Profile
View vs-exec.bat
@echo off
rem Allows to call commands as if it was a vs-prompt by preceeding it with vs-exec
rem For instance `vs-exec cl main.cpp` to compile `main.cpp`
IF NOT DEFINED VS_BASE_PATH (
FOR /F "tokens=*" %%g IN ('vswhere -latest -property "installationPath"') do (SET VS_BASE_PATH=%%g)
)
IF NOT DEFINED IS_DEVENV (
View covid-box
🇦🇹Austria 2 minutes ago
🤒Active: 12,802
😌Recovered: 612,523
💀Deaths: 10,455
💉Tests: 35,939,913
@Algo-ryth-mix
Algo-ryth-mix / discord-midnight.js
Last active Aug 24, 2020
The seconds to midnight on the doomsday clock in a handy littel discord bot
View discord-midnight.js
/* see below for license (ISC) */
/* requires:
- discord.js ($ npm install discord.js)
- minutes-to-midnight ($ npm install minutes-to-midnight)
*/
const Discord = require('discord.js');
const client = new Discord.Client();
const m2m = require('minutes-to-midnight');
@Algo-ryth-mix
Algo-ryth-mix / close_enough.hpp
Last active Mar 2, 2021
checks if two floats are "close enough"
View close_enough.hpp
/**
* Copyright 2020 Raphael Baier
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
View result.hpp
/**
* Copyright 2020 Raphael Baier
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
@Algo-ryth-mix
Algo-ryth-mix / pixl_sparse_set.hpp
Last active Apr 19, 2020
Generic Sparse Set implementation (WIP)
View pixl_sparse_set.hpp
#pragma once
#include <deque>
#include <vector>
#include <type_traits>
#include "common.hpp"
//inspired by https://gist.github.com/sjgriffiths/06732c6076b9db8a7cf4dfe3a7aed43a