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
#!/bin/bash | |
while true; do | |
idle=10 #minutes | |
echo -n "${WBOL}[$(date +'%H:%M')]${WDEF} checking pm schedules; " | |
sched=$(pmset -g sched) | |
if [[ $sched != "" ]]; then | |
echo -n "found schedule(s); cancelling all; " | |
if pmset schedule cancelall; then | |
echo -n "cancelled all schedules; " | |
else |
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 Foundation | |
import UIKit | |
import Photos | |
class HBTools { | |
static let appName = Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as? String ?? "String_appName" | |
enum Orientation { | |
case portrait |
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 UIKit | |
import IQKeyboardManagerSwift | |
class AppleEsqueViewController: UIViewController, UIScrollViewDelegate { | |
// Strings & values | |
private var titleText: String = "Title Text", | |
primaryButtonText: String = "Continue", | |
secondaryButtonText: String = "Skip" | |
NewerOlder