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
<!-- Modify this according to your requirement --> | |
<p id="countdown-wrapper"> | |
Redirecting in <span id="countdown">10</span> seconds. | |
<a href="#" onclick="stopCountdown();return false;">Cancel</a> | |
</p> | |
<!-- JavaScript part --> | |
<script type="text/javascript"> | |
// Total seconds to wait | |
var seconds = 10; |
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
// This script will monitor your trades on Cryptopia. | |
// You'll get alerted (in Terminal and via voice prompt) when a new trade is executed. | |
// Save locally, add your api key, and run with "node <script name>" in Terminal. | |
// If you don't have node installed | |
// - on Mac (assuming Homebrew installed): brew install node | |
// - on Windows: http://blog.teamtreehouse.com/install-node-js-npm-windows | |
// Install other packages used: |
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
// This script will monitor your open orders on Binance. | |
// You'll get alerted (in Terminal and via voice prompt) when an order changes status (e,g, filled, canceled). | |
// Save locally, add your api key, and run with "node <script name>" in Terminal. | |
// If you don't have node installed: | |
// brew install node | |
// Install other packages used: | |
// npm i requirejs binance-api-node say dateformat |
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
""" | |
collapsespaces is a Django template tag that collapses whitespace characters between tags into one space. | |
It is based on Django's 'spaceless' template tag (spaceless is different in that it completely removes whitespace between tags). | |
Why is this important? | |
Given "<span>5</span> <span>bottles</span>", collapsespaces will preserve the space between the two span elements--spaceless will not. | |
In a web browser: | |
"<span>5</span> <span>bottles</span>" renders as "5 bottles" | |
"<span>5</span><span>bottles</span>" renders as "5bottles" |