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 random | |
| import time | |
| import threading | |
| from pathlib import Path | |
| import numpy as np | |
| from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg | |
| from matplotlib.figure import Figure | |
| from tkinter import Tk, Text | |
| DIRECTORY_PATH = "/dmz/@projects/@project-journals" |
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 re | |
| from pathlib import Path | |
| from collections import defaultdict | |
| from graphlib import TopologicalSorter | |
| import logging | |
| logging.basicConfig(level=logging.WARNING) | |
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
| cmake_minimum_required(VERSION 3.5.1..3.28) | |
| set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) | |
| set(CMAKE_DISABLE_SOURCE_CHANGES ON) | |
| if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") | |
| message(FATAL_ERROR "In-source builds are not allowed.") | |
| endif() | |
| project( | |
| ProjectName |
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
| autoload -Uz +X compinit && compinit && autoload -Uz +X bashcompinit && bashcompinit && compgen -ac |
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
| #!/usr/bin/env python3 | |
| # pylint: disable=missing-function-docstring,invalid-name | |
| """ | |
| github-repos.py | |
| Iterate through usernames and get their GitHub repos. | |
| """ | |
| from itertools import count |
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
| #!/usr/bin/env python3 | |
| from typing import TypedDict | |
| from datetime import datetime, timedelta | |
| from json import load | |
| class Session(TypedDict): | |
| """One session info.""" | |
| duration: int |
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
| memusg() { /nix/store/*-time-*/bin/time -v "$@" 2> >(grep 'Maximum resident set size'); } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder