Now is the time for all good men to come to the aid of their country. This is just a regular paragraph.
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
Sub Strategy() | |
Dim counter As Integer | |
Dim fin As Integer | |
Worksheets("COUNTRY_INFO").Unprotect | |
fin = 9 + Worksheets("INTRO").Cells(46, 5) | |
For counter = 9 To fin | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 hashlib | |
import argparse | |
import sys | |
import csv | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-c", "--csv", type=str, help="this is the csv file") | |
parser.add_argument("-p", "--projectid", type=int, help="this is the project id") | |
args = parser.parse_args() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
DATE_WITH_TIME=`date "+%Y%m%d"` | |
psql -h localhost dhis2 -c "\copy (SELECT * FROM _view_analytics) to './dhis2-export.tsv' WITH NULL AS ''" | |
aws s3 cp dhis2-export.csv s3://stoppalu-dhis2 |
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
#!/bin/sh | |
psql -h localhost hhis -U hhis -c "\copy (SELECT * FROM _view_events) to './dhis2-export.tsv' WITH NULL AS ''" | |
aws s3 cp dhis2-export.tsv s3://spla-dhis2/dhis2-export.tsv |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Use the API to create some test data\n" | |
] | |
}, | |
{ |