let pages = [...dv.pages().where(p => p.file.path.includes('/'))];
pages.sort((a, b) => b.file.name.localeCompare(a.file.name));
let grouped = {};
function addToHierarchy(pathArray, obj) {
let part = pathArray[0];
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
# Copyright (c) 2020, Marcelo Jorge Vieira | |
# License MIT | |
## fiis.yaml | |
## - portfolioSlug: default | |
## itemType: fiis | |
## symbol: TGAR11 | |
## brokerSlug: easyinvest | |
## shares: 35 | |
## price: 138.62 |
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
PURCHASES_TYPE="stocks fiis treasuries-direct certificates-of-deposit stocks-funds ficfi" | |
for X in $PURCHASES_TYPE; do | |
echo "Inserting $X data..."; | |
DATA=$(python3 -c 'import sys, yaml, json; json.dump(yaml.safe_load(sys.stdin), sys.stdout)' < $X.yaml | jq -c '.[]') | |
for ITEM in $DATA; do | |
curl -X POST "http://localhost:8889/api/v1/$X/operations" -H 'Content-Type: application/json' -d "$ITEM"; | |
done | |
echo "done!"; | |
echo ""; | |
echo ""; |
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
// Copyright (c) 2020, Marcelo Jorge Vieira | |
// Licensed under the MIT License | |
package main | |
import ( | |
"encoding/csv" | |
"fmt" | |
"io" | |
"log" |
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
// i18n shim! I feel bad for doing this =( | |
// https://github.com/megawac/async/blob/d2dd36b4558f483682f3c672630fdcb36a96d4d2/lib/async.js#L16 | |
((typeof self === "object" && self.self === self && self) || | |
(typeof global === "object" && global.global === global && global) || | |
this).__ = (x) => x; |
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
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2018, Marcelo Jorge Vieira <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as | |
# published by the Free Software Foundation, either version 3 of the | |
# License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
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
sessionid="thumbor" | |
schroot -b -c sid -n $sessionid | |
dd-schroot-cmd -c $sessionid apt-get update | |
dd-schroot-cmd -c $sessionid apt-get -y upgrade | |
dd-schroot-cmd -c $sessionid apt-get -y install devscripts build-essential lintian | |
dd-schroot-cmd -c $sessionid apt-get -y build-dep thumbor | |
schroot -r -c $sessionid | |
apt-get source thumbor |
I hereby claim:
- I am marcelometal on github.
- I am metal (https://keybase.io/metal) on keybase.
- I have a public key whose fingerprint is 5FAE 7D03 CCD2 2E1C 8DA9 C509 5B92 4EE3 1005 5CD3
To claim this, I am signing this object:
NewerOlder