Skip to content

Instantly share code, notes, and snippets.

View mberneis's full-sized avatar

Michael Berneis mberneis

View GitHub Profile
@mberneis
mberneis / convert_todoist_to_amblenote.php
Last active November 12, 2022 22:58
Conversion of Todoist Tasks into AmbleNote Notes
<?php
// Conversion of Todoist Tasks into AmbleNote Notes
// Step 1: Export into JSON file using https://darekkay.com/todoist-export
// Step 2: Use this code to convert to multiple markdown files.
// Step 3: Zip Markdown files
// Step 4: Import zip file into AmbleNote
if ($argc<2) {
die ("Please enter filename of todoist json file\n");
@mberneis
mberneis / webpack.mix.js
Created February 6, 2021 16:33 — forked from thecrypticace/webpack.mix.js
Mix + custom API for separate builds
const mix = require("laravel-mix")
mix.site = (id, callback) => {
if (!process.env.SITE || process.env.SITE === id) {
return callback()
}
};
mix.site('admin', () => {
mix.js("resources/js/admin/app.js", "public/js/admin.js")

Task

Create an app based on PHP and Symfony with the functionality below:

  • Ability to create portfolio of stocks by entering stock transactions: [SYMBOL | AMOUNT | DATE | BUY/SELL]
  • Add simple CRUD functionality for transaction table.
  • Use Yahoo Finance or Alpha Vantage to get the data for stocks - Use adjusted closing price of transaction date for calculations.
  • Display current Portfolio [SYMBOL | AMOUNT | VALUE | Profit/Loss] (PL based on yesterdays adjusted closing price)
  • Display summary for total value and total Profit/Loss