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
#!/usr/bin/env bash | |
if [[ $# -eq 0 ]] ; then | |
echo -e "\n\tUsage: ${0} {site} {username}" | |
echo -e "\n\tExamples:" | |
echo -e "\n\t\t${0} nickelodeon.com spongebobsquarepants@nick.tv" | |
echo -e "\n\t\t${0} btsport.com stevieG\n" | |
exit 0 | |
fi |
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
wget \ | |
--recursive \ # Download the whole site. | |
--no-clobber \ # Don't overwrite existing files. | |
--page-requisites \ # Get all assets/elements (CSS/JS/images). | |
--adjust-extension \ # Save files with .html on the end. | |
--span-hosts \ # Include necessary assets from offsite as well. | |
--convert-links \ # Update links to still work in the static version. | |
--restrict-file-names=windows \ # Modify filenames to work in Windows as well. | |
--domains yoursite.com \ # Do not follow links outside this domain. | |
--no-parent \ # Don't follow links outside the directory you pass in. |
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
/// Linux | |
fallocate -l 10G temp_10GB_file | |
/// Windows | |
fsutil file createnew temp_10GB_file 10000000000 | |
/// Mac OS | |
mkfile -n 10g temp_10GB_file |
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
body { | |
font: 10px sans-serif; | |
} | |
.axis line, | |
.axis path { | |
fill: none; | |
stroke: #000; | |
shape-rendering: crispEdges; | |
} | |
.axis text { |
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
date | price | volume | value | |
---|---|---|---|---|
23-Oct-15 11:02 | 11.76 | 34 | 399.84 | |
23-Oct-15 11:01 | 9.68 | 233 | 2255.44 | |
23-Oct-15 11:00 | 14.75 | 942 | 13894.50 | |
23-Oct-15 10:59 | 12.37 | 271 | 3352.27 | |
23-Oct-15 10:58 | 9.49 | 116 | 1100.84 | |
23-Oct-15 10:57 | 10.05 | 459 | 4612.95 | |
23-Oct-15 10:56 | 12.51 | 877 | 10971.27 | |
23-Oct-15 10:55 | 14.18 | 148 | 2098.64 | |
23-Oct-15 10:54 | 13.45 | 212 | 2851.40 |
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
date | value | |
---|---|---|
1988-01-01 | 12681 | |
1988-01-02 | 13264 | |
1988-01-03 | 13953 | |
1988-01-04 | 13921 | |
1988-01-05 | 13932 | |
1988-01-06 | 13157 | |
1988-01-07 | 11159 | |
1988-01-08 | 11631 | |
1988-01-09 | 12045 |
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
srm -m [file] |
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
.truncate { | |
width: 50px; | |
overflow: hidden; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
} |
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
// credit to Sean McManus | |
// from http://www.sean.co.uk/a/webdesign/javascriptdelay.shtm | |
function wait( ms ) { | |
ms += new Date().getTime(); | |
while ( new Date() < ms ){} | |
} |
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
function iterate( data ) | |
{ | |
if( typeof data === typeof {} ) | |
{ | |
for( i in data ) | |
{ | |
if( data.hasOwnProperty( i ) ) | |
{ | |
console.log( i, data[i] ); | |
iterate( data[i] ); |
NewerOlder