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
<script> | |
(function() { | |
var divHTML = document.querySelectorAll(".details-open"); | |
divHTML.forEach(function (el) { | |
var preNodes = el.getElementsByTagName("pre"); | |
var outputNode = preNodes[1]; | |
outputNode.outerHTML = "<details open class='output'><summary>Output</summary>" + outputNode.outerHTML + "</details>"; | |
}) | |
})(); | |
(function() { |
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
#/bin/bash | |
# Shell script to get a Live cricket score from www.espncricinfo.com | |
# To help Cricket fan DevOPS see the score on his Terminal. | |
# Thanks to ESPN SPORTS MEDIA LTD for their RSS feed. | |
# | |
# Author : Arul <mailto:me@arulraj.net> | |
function get_html() { | |
local html=$(curl -k -L -s $1) | |
echo "$html" |