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
import csv | |
import requests | |
# Saves the Dates, Gross and Net Pay, and all Deductions. | |
def call_adp_statement_api(stmt, headers): | |
row_data = {} | |
url = f"https://my.adp.com/myadp_prefix/v1_0/O/A/payStatement/{stmt}" | |
response = requests.get(url, headers=headers) |
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
{ | |
"meta": { | |
"version": "v1.0.0", | |
"canonical": "https://github.com/jsonresume/resume-schema/blob/v1.0.0/schema.json", | |
"theme": "jacrys" | |
}, | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"basics": { | |
"name": "Wei Wang", | |
"label": "Software Engineer", |
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 replaceInText(element, pattern, replacement) { | |
for (let node of element.childNodes) { | |
switch (node.nodeType) { | |
case Node.ELEMENT_NODE: | |
replaceInText(node, pattern, replacement); | |
break; | |
case Node.TEXT_NODE: | |
node.textContent = node.textContent.replace(pattern, replacement); | |
break; | |
case Node.DOCUMENT_NODE: |
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
# Prints your robinhood positions in (Symbol, Quantity, Avg_Price) format | |
# Example: | |
# AAPL, 100.00000000, 12.1234 | |
# TTTT, ###.########, ##.#### | |
import requests | |
robinhoodPositionsAPI = "https://api.robinhood.com/positions/?nonzero=true" | |
# Enter your authorization token here |
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
import requests | |
import json | |
states = ["Alaska", | |
"Alabama", | |
"Arkansas", | |
"American Samoa", | |
"Arizona", | |
"California", | |
"Colorado", |
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
// ==UserScript== | |
// @name Principal 401k Account History to CSV | |
// @version 0.01 | |
// @description A userscript to export Principal's account history to a .csv file | |
// @author Wei Wang | |
// @match https://secure05.principal.com/RetirementServiceCenter/memberview?Contract=* | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== |