Skip to content

Instantly share code, notes, and snippets.

View Virksaabnavjot's full-sized avatar
🎯
Focusing

Navjot Singh Virk Virksaabnavjot

🎯
Focusing
View GitHub Profile
@Virksaabnavjot
Virksaabnavjot / reporting.js
Last active November 17, 2020 01:24
Javascript Solution to Export Dividend Data from Trading212 (in JSON) - Trading212 Reporting
//let length = document.getElementsByClassName('r3p0r7s000-subheading');
let length = 3; //you can change me around
let data = {dividends : [] };
for (i=0; i <= length; i++){
let companyName = document.getElementsByClassName('r3p0r7s000-subheading')[i].innerHTML;
let dividendAmount = document.getElementsByClassName('r3p0r7s000-main-info')[i].innerHTML;
var dividend = {
"companyName": companyName,
@Virksaabnavjot
Virksaabnavjot / index.html
Created September 8, 2019 22:14
HTML DOM Code Example
<html>
<head>
<title>I am a Page Title</title>
</head>
<body>
<h1 align="center">I am a heading</h1>
<p style="background-color: red">I am a paragraph</p>
<img src="https://mrvirk.com/wp-content/uploads/2018/05/mrvirk-mobile-logo-v3-300x69.png" />
</body>
</html>
<html>
<head>
<title>
Programmatically passing URL parameters to IFrame using JavaScript
</title>
</head>
<body>
<iframe id="myIframe" frameborder="0" marginwidth="0" marginheight="0" scrolling="NO" width="100%" height="100%"></iframe>
</body>
Code and Explanation: https://mrvirk.com/javascript-to-calculate-age-from-date-of-birth.html
@Virksaabnavjot
Virksaabnavjot / Jcode
Last active April 16, 2022 20:33
Jcode
Jcode Project - https://github.com/virksaabnavjot/jcode
@Virksaabnavjot
Virksaabnavjot / Cloud project
Created July 23, 2017 13:48
Useful resources
Ruby on Rails Tutorial: Developing a Demonstration Application
https://www.youtube.com/watch?v=7Vj0u_q-iEw