This file contains hidden or 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/local/bin/python3.7 | |
| principal = 10000.0 | |
| interest_rate = 5.0 | |
| time_units = 10 | |
| def get_percentage(inputf, percentage): | |
| return inputf * percentage / 100.0 | |
| def get_compounding(principalf, n): |
This file contains hidden or 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
| // See: Here's Exactly WHEN I am Buying Bitcoin. Alessio Rastani. Published on 8 Jun 2019. https://youtu.be/TiUUJxdynaY | |
| study(title = "Rastani Ribbon", shorttitle="Rastani Ribbon", overlay=true) | |
| src0 = close, len1 = input(21, minval=1, title="MA Length") | |
| src1 = close, len2 = input(55, minval=1, title="MA Length") | |
| src2 = close, len3 = input(100, minval=1, title="EMA Length") | |
| src3 = close, len4 = input(100, minval=1, title="MA Length") | |
| src4 = close, len0 = input(200, minval=1, title="MA Length") | |
| sma1 = sma(src1, len1) |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>USD/NOK Slider</title> | |
| <meta charset="utf-8"> | |
| <style type="text/css"> | |
| .slidecontainer { | |
| width: 20em; /* Width of the outside container */ | |
| } | |
| /* Slider */ |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>EUR/USD Slider</title> | |
| <meta charset="utf-8"> | |
| <style type="text/css"> | |
| .slidecontainer { | |
| width: 20em; /* Width of the outside container */ | |
| } | |
| /* Slider */ |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>EUR/NOK Slider</title> | |
| <meta charset="utf-8"> | |
| <style type="text/css"> | |
| .slidecontainer { | |
| width: 20em; /* Width of the outside container */ | |
| } | |
| /* Slider */ |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Track Mouse Position II</title> | |
| <meta charset="utf-8"> | |
| <style type="text/css"></style> | |
| </head> | |
| <body> | |
| <header> | |
| <h1>Track Mouse Position II</h1> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Track Mouse Position I</title> | |
| <meta charset="utf-8"> | |
| <style type="text/css"></style> | |
| </head> | |
| <body> | |
| <header> | |
| <h1>Track Mouse Position I</h1> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Coinbase Pro Market Data</title> | |
| <meta charset="utf-8"> | |
| <style type="text/css"></style> | |
| </head> | |
| <body> | |
| <header> | |
| <h1>Coinbase Pro Market Data</h1> |
This file contains hidden or 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 median(arr) { | |
| let middle = Math.floor((arr.length-1)/2); | |
| if (arr.length % 2) { | |
| return arr[middle]; // odd | |
| } else { | |
| return (arr[middle]+arr[middle+1])/2; // even | |
| } | |
| } |
This file contains hidden or 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
| 'use strict'; | |
| /* | |
| * Before you start, make sure you've done the following: | |
| * mkdir slowServer | |
| * cd slowServer | |
| * $ npm init | |
| * $ npm install express --save | |
| * Then copy this file to the slowServer directory | |
| */ |