Skip to content

Instantly share code, notes, and snippets.

View Reputeless's full-sized avatar
🍰
A piece of cake

Ryo Suzuki Reputeless

🍰
A piece of cake
View GitHub Profile
@RYOSKATE
RYOSKATE / ApngImage.h
Created August 11, 2022 23:21
APNGを作成する関数
//-----------------------------------------------
//
// Copyright (C) 2022 RYOSKATE
//
// Licensed under the MIT License.
//
//-----------------------------------------------
#pragma once
# include <Siv3D.hpp> // OpenSiv3D v0.6.5
@sthairno
sthairno / DearImGuiAddon.cpp
Last active March 8, 2024 21:39
imgui_impl_s3d
#include <Siv3D.hpp>
#include <imgui.h>
#include "imgui_impl_s3d.h"
#include "DearImGuiAddon.hpp"
/// @brief アドオンの登録時の初期化処理を記述します。
/// @remark この関数が false を返すとアドオンの登録は失敗します。
/// @return アドオンの初期化に成功した場合 true, それ以外の場合は false
bool DearImGuiAddon::init()
@ConorWilliams
ConorWilliams / zip.h
Last active July 1, 2021 15:30
Zip like Python in C++! A zip() function for ranges based for loops. See it working: https://godbolt.org/z/6AJdhk
// Copyright (c) 2019, Conor Williams
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
// Compiling on gcc 9.2 with: -std=c++2a -O3 -fconcepts
#ifndef ZIP_CPP
#define ZIP_CPP
@atoponce
atoponce / gist:07d8d4c833873be2f68c34f9afc5a78a
Last active March 19, 2024 17:24 — forked from tqbf/gist:be58d2d39690c3b366ad
Cryptographic Best Practices

Cryptographic Best Practices

Putting cryptographic primitives together is a lot like putting a jigsaw puzzle together, where all the pieces are cut exactly the same way, but there is only one correct solution. Thankfully, there are some projects out there that are working hard to make sure developers are getting it right.

The following advice comes from years of research from leading security researchers, developers, and cryptographers. This Gist was [forked from Thomas Ptacek's Gist][1] to be more readable. Additions have been added from