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
[alias] | |
contains = "!f() { \ | |
if git merge-base --is-ancestor $1 HEAD; then \ | |
echo I contain commit $1; \ | |
else \ | |
echo I do not contain commit $1; \ | |
fi \ | |
}; f" |
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
namespace std { | |
[[noreturn]] inline void unreachable() { | |
#ifdef __GNUC__ | |
__builtin_unreachable(); | |
#elif defined _MSC_VER | |
__assume(false); | |
#endif | |
} | |
} // namespace std |
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 <initializer_list> | |
#include <queue> | |
#include <vector> | |
template <typename T, typename Cmp> | |
struct indexable_queue : public std::priority_queue<T, std::vector<T>, Cmp> | |
{ | |
T& at(std::size_t index) { return this->c.at(index); } | |
const T& at(const std::size_t index) const { return this->c.at(index); } | |
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
"""Patch an unbound class method.""" | |
from unittest import mock | |
import pytest | |
class MyClass(): | |
"""Demo class.""" | |
@classmethod |
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
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: master | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: master | |
ament/ament_lint: |
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
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: foxy | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: foxy | |
ament/ament_lint: |
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
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: galactic | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: galactic | |
ament/ament_lint: |
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
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: humble | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: humble | |
ament/ament_lint: |
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
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: master | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: master | |
ament/ament_lint: |
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
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: galactic | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: galactic | |
ament/ament_lint: |
NewerOlder