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
| readlines(f) | |
| 1-element Vector{String}: | |
| "what a boring f'ing textwhat a boring f'ing text." | |
| # NOTE: write a function that optionally inserts newlines after each string in write or append mode. |
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
| epic_failure = "https://www.python.org/downloads/metadata/sigstore/" | |
| type(epic_failure) == AsininePEPs |
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
| ERROR: MethodError: no method matching first(::Vector{HTMLNode}, ::Nothing) | |
| The function `first` exists, but no method is defined for this combination of argument types. | |
| Closest candidates are: | |
| first(::AbstractVector, ::Integer) | |
| @ Base abstractarray.jl:504 | |
| first(::AbstractArray) | |
| @ Base abstractarray.jl:452 | |
| first(::Any) | |
| @ Base abstractarray.jl:471 |
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
| # Function to apply ROT13 (Caesar cipher with shift of 13) | |
| function rot13(s::String) | |
| return map(c -> shift_char(c, 13), s) | |
| end | |
| # Helper function to shift a single character by a given amount | |
| function shift_char(c::Char, shift::Int) | |
| if 'a' <= c <= 'z' | |
| # Shift within lowercase letters | |
| return Char((Int(c) - Int('a') + shift) % 26 + Int('a')) |
NewerOlder