From: https://stackoverflow.com/a/55162900/2089076
gem install libxml-ruby -v '3.1.0' -- --with-xml2-include=`xcrun --show-sdk-path`/usr/include/libxml2
# $1 = site to check | |
while true | |
do | |
curl -L "$1" -o site1.html &>/dev/null | |
curl -L "$1" -o site2.html &>/dev/null | |
if diff -q site1.html site2.html &>/dev/null; then | |
echo "YES!!!" |
var checkAutocompleteInput = function() { | |
if ($('#autocomplete').find('.tt-selectable').length === 0) { // "#autocomplete" is the autocomplete input menu section | |
$('.actions input').attr('disabled', 'disabled') // ".actions input" is the Submit button for the form | |
} else { | |
$('.actions input').removeAttr('disabled') | |
} | |
}; | |
$('#autocomplete .typeahead').typeahead({...}, {...}).on('typeahead:render', function(e) { | |
$('#autocomplete').parent().find('.tt-selectable:first').addClass('tt-cursor'); |
From: https://stackoverflow.com/a/55162900/2089076
gem install libxml-ruby -v '3.1.0' -- --with-xml2-include=`xcrun --show-sdk-path`/usr/include/libxml2
gem install therubyracer -v '0.12.3' -- --with-v8-dir=/usr/local/opt/[email protected] --with-cxx=/usr/bin/gcc