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
input_strings = [ | |
"AATATCCTGTATAGATATACCTTGCCCTGCACCTAATTCTTCGAGCATCGATAGACGTGCAACTCGTTCATAGGCGCCTGAGGACAAGTCTTCAATCTGATCACTTCTCTCAGGCGTGTAAAAGCGCCTTTAGCTTGCAATGCCGAAGACCTAGGTCCTTAGATAGAAGTGGGGTAACCACACAATAGAAGTGAGTGTACTCTGAAATCGCTCCTTCCAGTAGGTGGCCGTGCATAAGGTTGGTGTCGACGCGAGTGAATTCGCATAAAAACCGTCAGCAATACTTAAGGCTAATATGAGCGATGTAGCAGGCGAGACTGATGTCGAACCGAGAGGCAGACTCTTAGTCTCTTAGTAACAGGAAGAAGCTAATTCAGCTCGGTCTGTAGAGCAAGGTCGC", | |
"CACCAGCATTTTATAAGCATTTGCCTGCCTCCACTGAAACCCCTGTTTTCTCTGTAGGTCATAATATTACTAACATCAGTCAACTGCCGTTACCTGTCGCCACATATAGTGATGATTTGGGCAAGGGGCGGTGTTCGCTTATGTGGTGTATCGGCGCTTTCACAATTCAAGATGCGTGTGAACCTGCGCAACACTGTGACGAAGGACGACCGTGTCCTTTCCTGTGTCTCTGGGTAAGTTCGATCCGCCAGATAAAAGGTTACGTCAGAGCTTGCAATGCCGATGACCTAGGTCCTTAGATAGGGCGATAAGAGCATCCAGCTTTATATGCACTTTGACGGACTATACTATCTTCGGCGTTGACATGGAAGCCGAGATGTTCAGTCCAATTGTCCCTATG", | |
"TGCGTCCTCGTATAGAATCCACTCCCGGGCGTAGCCTGATAATGTTATTGCACTATACTGCGATTACTCATCTCGGTATCAAACTAACCCAGACCGGCAACAGGTGAGTAGGACCGCCTGCGCGAGCGTCTGAGGTAAGGAATACTGGACAGCGGCCTGTTAGCAGCCGAGTCAATTGTGTCCTCGAGCTGCCCGTT |
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
RewriteBase / | |
# Brotli | |
# If the web browser accept brotli encoding… | |
RewriteCond %{HTTP:Accept-encoding} br | |
# …and the web browser is fetching a probably pre-compressed file… | |
RewriteCond %{REQUEST_URI} .*\.(css|html|js) | |
# …and a matching pre-compressed file exists… | |
RewriteCond %{REQUEST_FILENAME}.br -s | |
# …then rewrite the request to deliver the brotli file | |
RewriteRule ^(.+) $1.br |
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
function $(selector) { | |
return document.querySelector(selector) | |
} | |
// Select Body Tag | |
$("body"); | |
// Select By ID | |
$("#SomeID"); |
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
const element = document.getElementById("demo"); | |
fetch('demo_post.asp', { method: "POST" }) | |
.then(function(response) { | |
element.innerHTML = response; | |
}) |
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
$.post("demo_post.asp", {}, | |
function(data,status){ | |
$("#demo").html(data); | |
}); |
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
var xhttp = new XMLHttpRequest(); | |
xhttp.onreadystatechange = function() { | |
if (this.readyState == 4 && this.status == 200) { | |
document.getElementById("demo").innerHTML = this.responseText; | |
} | |
}; | |
xhttp.open("POST", "demo_post.asp", true); | |
xhttp.send(); |