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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Created with Jaspersoft Studio version last--> | |
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Treatment Report" language="groovy" pageWidth="792" pageHeight="612" orientation="Landscape" columnWidth="752" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" > | |
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Local NTD Envision"/> | |
<template><![CDATA[$P{isLocal} ? "styles/ntd_style.jrtx" : "repo:/reports/styles/ntd_style"]]></template> | |
<style name="Treatment Row" mode="Opaque" backcolor="#FFFFFF" > | |
<conditionalStyle> | |
<conditionExpression><![CDATA[new Boolean($V{REPORT_COUNT}.intValue()%2==0)]]></conditionExpression> | |
<style backcolor="#DBFBFB"/> | |
</conditionalStyle> |
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
/* | |
Uses sendgrid to send out system generated emails. Check out Sendgrid.com | |
*/ | |
function sendgrid_email($subject, $to_emails, $content, $category){ | |
if (isDebugEnabled(1)) { | |
logMessage("applicationlib.sendgrid_email: sending email with subject $subject with a size " . count($to_emails) ); | |
} |
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
var dataAdapter = new jQuery.jqx.dataAdapter(source, { | |
autoBind: true, | |
loadComplete: function (records) { | |
//show the export | |
jQuery("#export_dropdown_list").jqxDropDownList({ width: '200px', height: '18px', theme: cp_theme }); | |
jQuery("#export_dropdown_list").jqxDropDownList('loadFromSelect', 'exporter_source'); | |
jQuery("#export_dropdown_list").jqxDropDownList({selectedIndex: 0}); | |
jQuery("#exportButton").show(); | |
}, |
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
id: START | |
type: TEXT | |
text: "[THE HOUSEHOLD SCREENING RESPONDENT MUST BE 18 YEARS OF AGE OR OLDER AND YOU MUST BE CONFIDENT THAT THIS PERSON CAN PROVIDE ACCURATE INFORMATION ABOUT ALL MEMBERS OF THE HOUSEHOLD. <p> IF NEEDED, VERIFY THE AGE OF THE HOUSEHOLD SCREENING RESPONDENT TO MAKE SURE HE/SHE IS 18 YEARS OF AGE OR OLDER.]" | |
next: INTRO | |
--- | |
id: INTRO | |
type: NUM | |
text: How old are you? <P>[ENTER NUMBER]<P>[ENTER 98 FOR DON'T KNOW][ENTER 99 FOR REFUSED] | |
range: 0-97 | |
next: INTRO1 |
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
from pymongo import MongoClient | |
import datetime, time, string | |
import codecs | |
import itertools | |
#c = MongoClient() | |
c = MongoClient("mongodb://[put your user name here]:[put your password here]@sif.rtp.rti.org") | |
db = c.mj_tweets | |
collection = db.mj_sample | |
# year,month, day, hour |
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" | |
] | |
}, | |
{ |
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
#!/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 |
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 |
OlderNewer