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 btn = document.getElementById("copy-button"); | |
btn.addEventListener("click", clickHandler, false); | |
function clickHandler(e) { | |
document.exeCommand('copy'); | |
} |
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 | |
DATE=`date +%Y%m%d` | |
ALEXA_URL=http://www.alexa.com/topsites/countries%3B | |
COUNTRY_CODE=$1 | |
OUTPUT_FILE=ALEXA_${COUNTRY_CODE}-${DATE}.txt | |
echo "Downloading Alexa top site data for $COUNTRY_CODE" |