Skip to content

Instantly share code, notes, and snippets.

:octocat:
may the --force be with you!

Mitama LoliGothick

:octocat:
may the --force be with you!
Block or report user

Report or block LoliGothick

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
View flip.hpp
#ifndef MITAMA_RANGE_VIEW_FLIP_HPP
#define MITAMA_RANGE_VIEW_FLIP_HPP
#include <range/v3/all.hpp>
#include <utility>
#include <type_traits>
#include <tuple>
namespace mitama::views {
inline constexpr auto flip = ranges::views::transform([](auto&& t){
static_assert(std::tuple_size_v<std::decay_t<decltype(t)>> >= 2);
View conversion.hpp
#ifndef MITAMA_RANGE_CONVERSION_HPP
#define MITAMA_RANGE_CONVERSION_HPP
#include <range/v3/all.hpp>
#include <utility>
#include <type_traits>
#include <tuple>
#include <mitama/mana/type_traits/is_tuple_like.hpp>
#include <boost/hana/functional/overload_linearly.hpp>
namespace mitama::_collect_fn_detail {
template <class Dictionary, class=void>
View zshrc
# zplug
source ~/.zplug/init.zsh
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
zplug "bhilburn/powerlevel9k", use:powerlevel9k.zsh-theme
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-completions"
zplug "chrissicool/zsh-256color"
zplug "b4b4r07/enhancd", use:init.sh
@LoliGothick
LoliGothick / explorer_range_wrapper.hpp
Created Oct 10, 2019
range wrapper for TopExp_Explorer
View explorer_range_wrapper.hpp
#ifndef CADDi_OCC_EXTENSIONS_EXPLORER_HPP
#define CADDi_OCC_EXTENSIONS_EXPLORER_HPP
#include <iterator>
#include <type_traits>
#include <utility>
#include <functional>
#include <memory>
#include <TopExp_Explorer.hxx>
#include <TopoDS_Shape.hxx>
#include <boost/container/flat_map.hpp>
@LoliGothick
LoliGothick / entry.hpp
Created Oct 10, 2019
Entry for FlatMap
View entry.hpp
#ifndef MITAMA_CONTAINER_ENTRY_HPP
#define MITAMA_CONTAINER_ENTRY_HPP
#include <boost/container/flat_map.hpp>
#include <functional>
#include <type_traits>
#include <utility>
namespace mitama {
template <class K, class V>
View docs_config.yml
version: 2.1
orbs: # Inline Orbs for Document Integration
mkdocs:
jobs:
test_book: # Sample Code Integration
parameters:
compiler:
description: compiler-version
type: string
View config.yml
version: 2.1
executors:
default:
docker:
- image: buildpack-deps:bionic-curl
test-env:
parameters:
compiler:
description: "compiler-version"
default: "clang-7.0.0"
View init.zsh
#!/usr/bin/env zsh
# A hash array for zplug
typeset -gx -A zplugs
zplugs=()
# A variable as a starting point of zplug
typeset -gx ZPLUG_ROOT="${${(%):-%N}:A:h}"
# Load basic functions such as an __zplug::base function
View hoge.hpp
template < class... Units1, template <class> class Synonym1, auto Value1,
class... Units2, template <class> class Synonym2, auto Value2,
std::enable_if_t<
is_same_dimensional_v<
dimensional_t<Units1...>,
dimensional_t<Units2...>>,
bool> = false >
inline constexpr auto
operator+ (static_quantity_t<Synonym1<dimensional_t<Units1...>>, Value1>, static_quantity_t<Synonym2<dimensional_t<Units2...>>, Value2>) noexcept
-> static_quantity_t<mitamagic::scaled_dimension_t<dimensional_t<Units1...>, dimensional_t<Units2...>>,
View unused_params
clang++ ./test.cpp -std=c++17 -Wall -Wextra -I../include
In file included from ./test.cpp:1:
In file included from ./../include/DTL.hpp:32:
In file included from ../include/DTL/Deprecated.hpp:43:
In file included from ../include/Deprecated/RogueLike.hpp:18:
../include/Utility/NoiseShoreBool.hpp:282:75: warning: unused parameter 'x_' [-Wunused-parameter]
constexpr void noiseShoreBothBool(Matrix_ & matrix_, const std::size_t x_, const std::size_t y_) noexcept {
^
../include/Utility/NoiseShoreBool.hpp:282:97: warning: unused parameter 'y_' [-Wunused-parameter]
constexpr void noiseShoreBothBool(Matrix_ & matrix_, const std::size_t x_, const std::size_t y_) noexcept {
You can’t perform that action at this time.