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
| import numpy as np | |
| import pandas as pd | |
| import yfinance as yf | |
| etfs = ['SWDA.MI', 'AGGH.MI', 'VECP.MI', 'VGEA.MI', 'RENW.MI', 'EIMI.MI', 'DRVE.MI'] | |
| portfolio_amounts = [58.91, 3.74, 12.58, 12.01, 2.89, 7.21, 2.71] | |
| annual_fees = [0.20, 0.10, 0.09, 0.07, 0.49, 0.18, 0.10] | |
| risk_free_rate = 0.02 | |
| total_investment = sum(portfolio_amounts) |
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
| select all: key(ctrl-a) | |
| undo: key(ctrl-z) | |
| save: key(ctrl-s) | |
| copy: key(ctrl-c) | |
| cut: key(ctrl-x) | |
| drop: key(ctrl-v) | |
| special drop: key(win-v) | |
| # close: key(ctrl-w) | |
| tab right: key(ctrl-tab) |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Reactive.Linq; | |
| using System.Reactive.Subjects; | |
| namespace KeystrokeRedo | |
| { | |
| class Program | |
| { |
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
| let intellij = serenade.app("intellij"); | |
| let global = serenade.global(); | |
| let chrome = serenade.app("chrome"); | |
| // Display an alert box with the message "Hello, world!" | |
| // alert("Hello, world!"); | |
| // Define global shortcut keys for common actions | |
| global.key("cut", "x", ["ctrl"]); // Cut the selected text |
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
| constructor( | |
| private dialogRef: MatDialog, | |
| public dataService: DataService, | |
| public router: Router, | |
| public route: ActivatedRoute | |
| ) { | |
| this.route.params | |
| .pipe( |
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
| $colors: ( | |
| 'bg': #263137, | |
| 'primary': #8EA1BC, | |
| 'braces': #6F8796, | |
| 'dot': #89DDFF, | |
| 'string': #CDCDCD, | |
| 'class': #4DB769, | |
| 'intreface': #BE89E9, | |
| 'variable': #F49446, | |
| 'static-field': #E69E6E, |
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
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| ; #Warn ; Enable warnings to assist with detecting common errors. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| ;https://www.autohotkey.com/docs/KeyList.htm | |
| ;n::o | |
| ;o::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
| #!/usr/bin/env python3 | |
| import os | |
| import json | |
| import requests | |
| from multiprocessing.pool import ThreadPool | |
| def build_index(): | |
| page = 1 |
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
| {"lastUpload":"2021-08-15T13:17:53.910Z","extensionVersion":"v3.4.3"} |
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
| <div *ngIf='{ | |
| userActions:(dataService.userActions$|async) | |
| } as globalBag' | |
| > | |
| <ng-container *ngIf='{ | |
| timepointCount:(globalBag.timePoints.length), | |
| widthObject:({"width.%": globalBag.zoomValue+""}) | |
| }as lowerBag' | |
| > |
NewerOlder