Skip to content

Instantly share code, notes, and snippets.

View RaoOfPhysics's full-sized avatar

Achintya Rao RaoOfPhysics

View GitHub Profile
@RaoOfPhysics
RaoOfPhysics / collapseoutput.js
Created July 23, 2019 10:57 — forked from emitanaka/collapseoutput.js
Collapsible Code Output for `xaringan`
<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() {
@RaoOfPhysics
RaoOfPhysics / livecricketscore.sh
Last active February 21, 2021 17:35 — forked from arulrajnet/livecricketscore.sh
Shell script to get a Live cricket score from www.espncricinfo.com. Just run this shellscript then select your match. when ever you want to know score open that terminal and see. Just simple as Dhoni's helicopter shot :D
#/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"