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
| // Returns Items's Outside Of The Matrix. | |
| function matrixTrack(array) { | |
| const result = []; | |
| function sprint(callback, reverse = false) { | |
| const sprintLength = array.length - 1; | |
| if (reverse) { | |
| for (let i = sprintLength; i > 0; i--) { | |
| callback(i, array.length - 1); | |
| } |
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
Referrer-Policy = "no-referrer"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
X-Permitted-Cross-Domain-Policies = "none"
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
| require "http/server" | |
| server = HTTP::Server.new do |context| | |
| context.response.content_type = "text/plain" | |
| context.response.print "Hello from #{context.request.path}!" | |
| end | |
| System.cpu_count.times do |_| | |
| Process.fork do | |
| server.listen(host = "0.0.0.0", port = 8000, reuse_port = true) |
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
| # frozen_string_literal: true | |
| # This algorithm finds the offender (character that stops the string from being an palindrome) | |
| # And returns the index of that character | |
| def palindrome_index(string) | |
| def is_palindrome(s) | |
| s == s.reverse | |
| end |
sudo apt-get install intel-microcode