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
| __cleanup_hook_i=0 | |
| __cleanup_hook () { | |
| for ((i=__cleanup_hook_i - 1; i >= 0; i--)); do | |
| eval "\"\${__cleanup_hook_action_${i}[@]}\"" | |
| done | |
| } | |
| trap __cleanup_hook EXIT |
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
| import sys | |
| import yaml | |
| import argparse | |
| class ConfigParser(): | |
| def __init__(self, *pargs, **kwpargs): | |
| self.options = [] | |
| self.pargs = pargs | |
| self.kwpargs = kwpargs |
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 <stddef.h> | |
| #include <stdio.h> | |
| #define ARR_SIZE(...) (sizeof(__VA_ARGS__) / sizeof((__VA_ARGS__)[0])) | |
| #define FOREACH_ARR(Type, IName, ...) \ | |
| for (struct \ | |
| { \ | |
| size_t i; \ |
NewerOlder