I hereby claim:
- I am tonyedwardspz on github.
- I am tonyedwardspz (https://keybase.io/tonyedwardspz) on keybase.
- I have a public key ASA0_Z0UN9j4cIb-2UDxcXqwljwT8CMYeePthl0YcQPc0Qo
To claim this, I am signing this object:
using System.Diagnostics; | |
using System.Text.Json; | |
using MyNamespce.Models; | |
namespace MyNamespce.Services; | |
public class Data | |
{ | |
private static readonly string _dataFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "PodPod", "Data"); | |
public static List<Podcast> Podcasts { get; set; } |
#!/bin/bash | |
# Replace /path/to/your/docker-compose/directory with the directory path where your docker-compose.yml resides | |
# Save this somewhere apropriate and give it executable permissions with chmod +x update_audiobookshelf.sh | |
# You can then run it with ./update_audiobookshelf.sh | |
# Navigate to the directory where your docker-compose.yml file resides | |
cd /path/to/your/docker-compose/directory | |
# Stop the running container | |
echo "Stopping running container..." |
#!/bin/bash | |
# Loop through all .m4b files in the current directory | |
for m4b_file in *.m4b; do | |
# Check if the file exists (in case there are no .m4b files) | |
if [[ -f "$m4b_file" ]]; then | |
# Get the filename without extension | |
base_name="${m4b_file%.*}" | |
# Check if the corresponding .pdf file exists |
#!/bin/bash | |
# Loop through all directories in the current directory | |
for directory in */; do | |
# Check if it's a directory | |
if [[ -d "$directory" ]]; then | |
# Remove trailing slash | |
dir_name="${directory%/}" | |
# Construct file names |
#!/bin/bash | |
# Loop through all .m4b files in the current directory | |
for m4b_file in *.m4b; do | |
# Check if the file exists (in case there are no .m4b files) | |
if [[ -f "$m4b_file" ]]; then | |
# Get the filename without extension | |
base_name="${m4b_file%.*}" | |
# Check if the corresponding .pdf file exists |
#!/usr/bin/env ruby | |
require 'mini_magick' | |
require 'fileutils' | |
begin | |
size = Integer(ARGV[0]) | |
rescue ArgumentError | |
puts "Size argument must be an integer." | |
exit |
I hereby claim:
To claim this, I am signing this object:
A Pen by Tony Edwards on CodePen.
'use strict'; | |
var CACHE_NAME = 'psw-cache-v1'; | |
var urlsToCache = [ | |
'/assets/site-logo.svg', | |
'/css/main.css', | |
'/javascript/application.js' | |
]; | |
self.addEventListener('install', function(event) { |
extension UITextField { | |
func underlined(){ | |
let border = CALayer() | |
let width = CGFloat(1.0) | |
border.borderColor = UIColor.lightGrayColor().CGColor | |
border.frame = CGRect(x: 0, y: self.frame.size.height - width, width: self.frame.size.width, height: self.frame.size.height) | |
border.borderWidth = width | |
self.layer.addSublayer(border) | |
self.layer.masksToBounds = true |