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
git for-each-ref --sort=committerdate refs/remotes/origin/ --format='%(committerdate:short) %(authorname) %(refname:lstrip=3)' |
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
def flatten_dict(data: dict): | |
"""Transform a dict with nested dicts/list to a one level dict with keys containing paths to | |
the original values encoded as `top_level_key.nested_key[list_item_index]` | |
""" | |
def iterate(_data, _path=""): | |
if isinstance(_data, dict): | |
for _key, _value in _data.items(): | |
yield from iterate(_value, f"{_path}.{_key}".lstrip(".")) | |
elif isinstance(_data, tuple | list): |
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
""" | |
https://github.com/openwrt/luci/blob/master/docs/JsonRpcHowTo.md | |
opkg update | |
opkg install luci-mod-rpc luci-lib-ipkg luci-compat | |
/etc/init.d/uhttpd restart | |
""" | |
import httpx | |
class Router: |
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
Sub CopyHeaderWithEachRow() | |
Doc = ThisComponent | |
Sheets = Doc.Sheets | |
Controller = Doc.CurrentController | |
ActiveSheet = Controller.getActiveSheet() | |
Selection =Controller.getSelection() | |
SelAddress = selection.RangeAddress | |
OlderNewer