A Pen by Tony Edwards on CodePen.
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:
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Offline todo app</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<link rel='stylesheet' href="style.css" type='text/css' media='all' /> | |
</head> |
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
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 |
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 ruby | |
require 'mini_magick' | |
require 'fileutils' | |
begin | |
size = Integer(ARGV[0]) | |
rescue ArgumentError | |
puts "Size argument must be an integer." | |
exit |
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
#!/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 |
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
#!/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 |
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
#!/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 |
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
#!/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..." |
OlderNewer