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
def i(str) | |
return '' if str.nil? || (stripped = str.strip).empty? | |
"🧲#{stripped}🧲" | |
end | |
def convert(input) | |
input.gsub(/🍪([^🔤🍪]+)?((🔤([^🔤🍪]+)🔤([^🔤🍪]+)?)+)🍪/) do | |
m = Regexp.last_match | |
s = "🔤#{i m[1]}" |
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
public class Queue<Element> { | |
private class QueueItem { | |
let value: Element | |
var next: QueueItem? | |
init(_ value: Element) { | |
self.value = value | |
} | |
} |
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
🌮 This extensions adds several methods that wrap strings into ANSI color codes. 🌮 | |
🐋 🔡 🍇 | |
🌮 Red color 🌮 | |
🐖 ❤️ ➡️ 🔡 🍇 | |
🍎 🍪🔤❌e[31m🔤 🐕 🔤❌e[0m🔤🍪 | |
🍉 | |
🌮 Green color 🌮 | |
🐖 💚 ➡️ 🔡 🍇 |
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
📦 sockets 🔴 | |
📦 files 🔴 | |
🌮 Represents the HTTP headers and status code 🌮 | |
🐇 🍙 🍇 | |
🍰 statusCode 🚂 | |
🍰 headers 🍯🐚🔡 | |
🐈 🆕 @statusCode 🚂 @headers 🍯🐚🔡 🍇 | |
🍮 statusCode @statusCode |