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 <iostream> | |
#include <array> | |
// vector | |
template<int ...data> | |
struct mvector; | |
template<int first, int ...data> | |
struct mvector<first, data...> { | |
static constexpr int size = sizeof...(data) + 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 <iostream> | |
#include <array> | |
// 数据结构定义 | |
template<int ...> | |
struct mvector; | |
template<int ...data, int _head> | |
struct mvector<_head, data...> { | |
constexpr static int head = _head; |
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 <cstddef> | |
#include <iostream> | |
#include <array> | |
// 断言 debug用的 | |
template<bool> | |
struct m_assert; | |
template<> | |
struct m_assert<true> { |
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 __INK_INVOKE_RESULT_HPP | |
#define __INK_INVOKE_RESULT_HPP | |
#include <type_traits> | |
namespace ink { | |
template<typename __Tp> | |
using remove_cvref_t = std::remove_cv_t<std::remove_reference_t<__Tp>>; | |
struct __failure_type{}; |
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 <iostream> | |
#include <tuple> | |
// 获取第N个元素的类型 | |
template <int N, typename ...S> | |
class tuple_item; | |
template <int N, typename TS, typename ...S> | |
class tuple_item<N, TS, S...>: public tuple_item<N, S...> {}; |
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
#!/usr/bin/env python3 | |
import sys | |
import json | |
import requests | |
from requests.api import head | |
def SendMessage(text: str) -> None: | |
send_url = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=url_key" | |
send_data = json.dumps({ |
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
[ | |
{ | |
"key": "cmd+1", | |
"command": "workbench.action.openEditorAtIndex1" | |
}, | |
{ | |
"key": "ctrl+1", | |
"command": "-workbench.action.openEditorAtIndex1" | |
}, | |
{ |