I hereby claim:
- I am stephen-bunn on github.
- I am stephenbunn (https://keybase.io/stephenbunn) on keybase.
- I have a public key whose fingerprint is EED5 C84E B688 4E24 0067 A63D 8277 8750 2AF6 6606
To claim this, I am signing this object:
#!/usr/bin/env sh | |
DEPENDENCIES="ffprobe ffmpeg jq" | |
for dep_name in $DEPEDENCIES | |
do | |
if !(command -v "$dep_name" > /dev/null 2>&1); then | |
echo "$dep_name not found"; | |
exit 1; | |
fi | |
done |
/* | |
* Vimium v1.67 Dracula Theme. | |
* Stephen Bunn <stephen@bunn.io> | |
*/ | |
:root { | |
/* Globals for color and font theming. */ | |
--vimium-surface-color: #15171b; | |
--vimium-text-color: #f8f8f2; | |
--vimium-accent-color: #9580ff; |
-- Hammerspoon Spaces Management Library | |
-- https://github.com/asmagill/hs._asm.spaces | |
local spaces = require('hs.spaces') | |
local ALACRITTY_NAME = 'Alacritty' | |
local ALACRITTY_SELECTOR = 'org.alacritty' | |
local ALACRITTY_TOGGLE_FULLSCREEN_KEYBIND = {'cmd', 'return'} | |
-- Configuration options for the Alacritty script |
I hereby claim:
To claim this, I am signing this object:
# Stubs for foo (Python 3) | |
# | |
# NOTE: This dynamically typed stub was automatically generated by stubgen. | |
from typing import List, Optional | |
def foo(input: List[int]) -> Optional[int]: ... |
[tool:pytest] | |
plugins = cov flake8 xdist | |
addopts = -rxsX --flake8 -n 4 --cov | |
norecursedirs = .git _build dist news tasks docs | |
testpaths = tests | |
python_files = test_*.py | |
python_classes = Test* | |
python_functions = test_* | |
flake8-ignore = | |
docs/source/* ALL |
# Copyright (c) 2019 Stephen Bunn <stephen@bunn.io> | |
# ISC License <https://opensource.org/licenses/isc> | |
import sys | |
from hypothesis import settings, HealthCheck | |
settings.register_profile( | |
"windows", suppress_health_check=[HealthCheck.too_slow], deadline=None | |
) |
"""Basic pytest+hypothesis for ``is_palindrome`` method.""" | |
from typing import Any, Callable | |
from hypothesis import given, assume | |
from hypothesis.strategies import text, composite | |
def is_palindrome(string: str) -> bool: | |
"""Determine if a given string is a palindrome. |
"""Basic pytest for ``is_palindrome`` method.""" | |
from typing import List | |
import pytest | |
def is_palindrome(string: str) -> bool: | |
"""Determine if a given string is a palindrome. |
"""Basic unittest for ``is_palindrome`` method.""" | |
import unittest | |
def is_palindrome(string: str) -> bool: | |
"""Determine if a given string is a palindrome. | |
:param str string: The string to process | |
:return: True if given string is a palindrome, otherwise False |