take the "export id" on the instance, it's the eventId in the url : https://play.dhis2.org/2.39.4.1/dhis-web-capture/index.html#/viewEvent?viewEventId=aMulsxS3imr
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
{ | |
"sourceDhis2": "https://play.dhis2.org/", | |
"elasticBeanstalkApp": "sandbox", | |
"startVersion": "2.32", | |
"endVersion": "2.34", | |
"hide": false | |
} |
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
{ | |
"payment_rules": { | |
"hospital_payment": { | |
"name": "Hospital payment", | |
"formulas": { | |
"quality_score": { | |
"de_id": "kHiZFDjZesb", | |
"expression": "round( avg(structure_and_management_score, process_of_care_score) ,2)", | |
"frequency": "quarterly" | |
}, |
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
Orgunits* | |
type -> OrgunitsFetching | |
tick -> Periods | |
OrgunitsFetching | |
type -> Orgunits | |
Periods | |
tick -> ReferencePeriods |
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
{ | |
"act1_weight_level1_for_1_and_2016q1": "6", | |
"act1_achieved_for_1_and_2016q1": "33", | |
"act1_target_for_1_and_2016q1": "33", | |
"act1_active_for_1_and_2016q1": "1", | |
"act1_cap_level1_for_1_and_2016q1": "125", | |
"act1_regional_bonus_level1_for_1_and_2016q1": "121235", | |
"act1_orgunit_id_for_1_and_2016q1": "1", | |
"act2_weight_level1_for_1_and_2016q1": "5", | |
"act2_achieved_for_1_and_2016q1": "80", |
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
require 'histogram/array' | |
require 'active_support' | |
require 'active_support/core_ext' | |
require 'active_support/core_ext/numeric' | |
timestamps = (1..355).map do |t| | |
[ | |
Time.now + (t * 1).days + 3.hours + rand(60).minutes + rand(16).seconds, | |
Time.now + (t * 1).days - 1.hours + rand(60).minutes + rand(16).seconds | |
] |
Hello software developers,
Please check your code to ensure you're not making one of the following mistakes related to cryptography.
- Writing your own home-grown cryptography primitives (For example: Mifare Classic)
- Exception: For the sake of learning, but don't deploy it in production.
- Using a fast hash function (e.g. MD5, SHA256) for storing passwords. Use bcrypt instead.
- Not using a cryptographically secure random number generator
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
library(ggmap) | |
library(readr) | |
data <- read_csv("./input/train.csv") | |
locations = c(left = -122.5222, | |
bottom = 37.7073, | |
right = -122.3481, | |
top = 37.8381) |
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
require 'fileutils' | |
# https://gist.github.com/3798773 speed up vagrant for debian | |
def local_cache(box_name) | |
cache_dir = File.join(File.dirname(__FILE__), 'cache', 'apt', box_name) | |
partial_dir = File.join(cache_dir, 'partial') | |
FileUtils.mkdir_p(partial_dir) unless File.exists? partial_dir | |
cache_dir | |
end | |
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
// Using the Jenkins Groovy Post build plugin to execute the following after every build | |
// https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin | |
// It would be nice not to have to specify these here... the repo name should be available within the hudson | |
// api somehow, but I didn't know how to get it. The access token should maybe be saved in a config file, and | |
// read in at runtime? | |
GITHUB_REPO_NAME = 'myusername/myreponame' | |
GITHUB_ACCESS_TOKEN = 'my_github_api_v3_access_token' |
NewerOlder