Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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] | |
### Log formatting | |
# | |
# Commit graph | |
llog = log --pretty=format:'%x09%C(auto)%h %d %<(80,trunc)%s' --graph | |
# Short commit graph, abbreviated by reference | |
slog = log --pretty=format:'%x09%C(auto)%h %d %<(80,trunc)%s' --graph --simplify-by-decoration | |
# Upstream log | |
ulog = log --pretty=format:'%x09%C(auto)%h %d %<(80,trunc)%s' --graph @ @{u} |
This file contains hidden or 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 <tuple> | |
#include <utility> | |
namespace internal | |
{ | |
template<typename T, typename T2, size_t... Is> | |
void add_rhs_to_lhs(T& t1, const T2& t2, std::integer_sequence<size_t, Is...>) | |
{ | |
auto l = { (std::get<Is>(t1) += std::get<Is>(t2), 0)... }; | |
(void)l; |
This file contains hidden or 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
// Fold expressions from https://medium.com/@matt.aubury/rip-index-sequence-2014-2017-9cc854aaad0 | |
` | |
template <typename... Ts, typename... Us> | |
auto operator+( | |
const std::tuple<Ts...> &tuple_t, const std::tuple<Us...> &tuple_u) { | |
return std::apply( | |
[&](const auto &... ts) { | |
return std::apply( | |
[&](const auto &... us) { return std::tuple(ts + us...); }, | |
tuple_u); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
gistup |
This file contains hidden or 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
+fordas@fela:~/workspace/pose_fork_depickle$ gdb | |
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 | |
[...] | |
+(gdb) file python | |
:(gdb) run pose_serial_fork_bug.py fullsize1.pdb | |
Starting program: /home/fordas/workspace/pose_fork_depickle/.conda/bin/python pose_serial_fork_bug.py fullsize1.pdb | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". |
This file contains hidden or 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
conda |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.