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 TipKit | |
import PlaygroundSupport | |
struct TestTip: Tip { | |
var title: Text { | |
Text("Test tip") | |
} | |
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 | |
func createDate(day: Int, month: Int, year: Int) -> Date? { | |
guard day > 0 && day <= 31, month > 0 && month <= 12 else { | |
return nil | |
} | |
let dateComponents = DateComponents(year: year, month: month, day: day) | |
return calendar.date(from: dateComponents) | |
} |
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
# Defined interactively | |
function fish_prompt | |
if not set -q VIRTUAL_ENV_DISABLE_PROMPT | |
set -g VIRTUAL_ENV_DISABLE_PROMPT true | |
end | |
# line 1 | |
echo # new line | |
set -g fish_prompt_pwd_dir_length 0 |