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 | |
function loop(){ | |
sleep 2 | |
url=`xclip -selection clipboard -o` | |
if [[ `cat /tmp/youtubeurl` == "$url" ]] | |
then | |
return | |
fi | |
mpv=`pgrep mpv` | |
if [[ $url == *"youtube"* && $mpv == "" ]] |
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
<!-- A fairly normal copyright stamp with placeholder for current year --> | |
<p>© Copywright <span class="copyrightYear"></span>, All rights reserved.</p> | |
<!-- Copywright date injection --> | |
<script type="text/javascript"> | |
(function() { | |
function injectCopywrightDate() { | |
var year = new Date().getFullYear(); | |
var placeholders = document.getElementsByClassName('copyrightYear'); |
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
/** | |
* azend's theory on medical naming schemes | |
*/ | |
function nameMedicalCondition ( mainSymptom, severity ) { | |
var name = mainSymptom; | |
if ( is_int(severity) && severity > 5 + ( Math.floor( Math.rand() * 4 ) - 2 ) ) { | |
name += 'icul'; | |
} |