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
When building `webkit-gtk-2.26.1` with a GTK+3 `gtk+-3.24.10`, after some update to the webkit-gtk port, e.g | |
~~~~ | |
-USE_LANGUAGES= c c++11 | |
+USE_LANGUAGES= c c++11 c++14 c++17 | |
~~~~ | |
... this apparently serving to obviate some build failures, but subsequently, the following build failures may occur | |
~~~~ |
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
# getent_auxgroups.sh - print auxiliary groups assigned to a single user name | |
# | |
# % Environment parameters | |
# WHOM | |
# - user name to parse for | |
# - If unspecified, defaults to $USER | |
# - Will be interpreted within a regular expression, in awk(1) | |
# | |
# % Depends On | |
# - getent(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
## (No Warranty) | |
class SHFrob02 | |
def self.runfrob() | |
out_rd, out_wr = IO.pipe | |
err_rd, err_wr = IO.pipe | |
subpid = Process.spawn("ls -d /frob /etc", :in => :close, :out => out_wr, :err => err_wr ) | |
samepid, status = Process.wait2(subpid) |
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
## deps-sort.py | |
## trivial dependency sort with stateful loop detection | |
class SortState(): | |
def __init__(self, origin): | |
self._origin = origin | |
self._cache = [] | |
@property | |
def origin(self): |
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
## aiohttpx.py - callback-based HTTP client example | |
## when run, displays debugging information with a decoded | |
## JSON response from http://ip.jsontest.com | |
## requirements | |
## - Python 3 https://www.python.org/downloads/ | |
## - HTTPX https://www.python-httpx.org/async/ | |
from abc import abstractmethod, ABC |
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
## async_httpx.py - callback-based HTTP client example | |
## (Public Domain) | |
from abc import abstractmethod, ABC | |
from typing import Mapping, Optional | |
from typing_extensions import Generic, TypeVar | |
import asyncio as aio | |
import httpx | |
from httpx._client import BaseClient |
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
from numbers import Real | |
from typing import Optional | |
from typing_extensions import TypeAlias | |
from ...Qt import QtCore | |
from ..GraphicsWidget import GraphicsWidget | |
# from .PlotAxis import AxisName, AxisPosition, PlotAxisInfo | |
RangeTuple: TypeAlias = tuple[Real, Real] |
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
# Python OAuth example | |
# | |
# an adaptation of earlier sample code https://stackoverflow.com/q/71564457/1061095 | |
# | |
# see also: https://github.com/spchamp/evernote-py3 | |
# | |
# Documentation, Oauth 1 in Evernote | |
# https://dev.evernote.com/doc/articles/authentication.php | |
# | |
# Usage: |
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
# region imports | |
from datetime import timedelta | |
from enum import StrEnum | |
import pandas as pd | |
from typing import TYPE_CHECKING, Any | |
from AlgorithmImports import ( | |
QCAlgorithm, Resolution, Slice, Market, TimeSpan, | |
MovingAverageType, TradeBarConsolidator, SubscriptionManager, | |
TradeBar, BollingerBands, BaseDataConsolidator |
OlderNewer