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
import reusables | |
@reusables.time_it() | |
def test_lbyl(messages): | |
out = [] | |
for _ in range(10000): | |
if messages and messages[0] and len(messages[0]) >= 3: | |
out.append(messages[0][2]) | |
return out |
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 subprocess import run, PIPE, STDOUT | |
from pathlib import Path | |
from datetime import datetime | |
import os | |
movie_file = "video_compare/glass.mp4" | |
file_name = "glass" | |
output_directory = "video_compare/ffmpeg" |
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
# In .bashrc and .profile | |
# export PYTHONSTARTUP="$HOME/.pythonrc.py" | |
# pip install python-box reusables pdir2 | |
from __future__ import print_function, with_statement, absolute_import | |
try: | |
from box import Box, BoxList | |
except ImportError: | |
print("Box not available") |
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
# Usage: from rosetta_stone import * | |
import abc as 𓀀 | |
import aifc as 𓀁 | |
import argparse as 𓀃 | |
import ast as 𓀄 | |
import asynchat as 𓀅 | |
import asyncio as 𓀆 | |
import asyncore as 𓀇 | |
import base64 as 𓀈 |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Requires python3 and requests library (pip install requests) | |
Provide the folder containing all the other folders of movies as the only arguement. | |
python3 download_movie_posters.py "C:\My Movies" | |
""" |
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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz | |
CPU Family: 0x6 |
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
// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in |
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
#!/usr/bin/env python | |
from subprocess import run, PIPE | |
import re | |
import sys | |
import json | |
su = re.compile(r'",\s*}') | |
def run_ffprobe(video_file): |
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
[tool.black] | |
line-length = 120 | |
target-version = ['py37', 'py38', 'py39', 'py310', 'py311'] | |
exclude = ''' | |
/( | |
\.eggs | |
| \.git | |
| \.idea | |
| \.pytest_cache | |
| _build |
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
2023-02-05T18:52:16.5661183Z Requested labels: macos-12 | |
2023-02-05T18:52:16.5661223Z Job defined at: cdgriffith/Box/.github/workflows/tests.yml@refs/pull/248/merge | |
2023-02-05T18:52:16.5661250Z Waiting for a runner to pick up this job... | |
2023-02-05T18:52:26.3775178Z Job is waiting for a hosted runner to come online. | |
2023-02-05T18:52:26.4775497Z Job is about to start running on the hosted runner: Hosted Agent (hosted) | |
2023-02-05T18:52:30.5112020Z Current runner version: '2.301.1' | |
2023-02-05T18:52:30.5154960Z ##[group]Operating System | |
2023-02-05T18:52:30.5155600Z macOS | |
2023-02-05T18:52:30.5155830Z 12.6.3 | |
2023-02-05T18:52:30.5156040Z 21G419 |