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
name: Update translation files from Transifex | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
build: |
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
{ | |
"@openmrs/esm-patient-chart-app": { | |
"extensions": { | |
"patient-chart-dashboard-slot": { | |
"order": ["allergies-summary-dashboard", | |
"appointments-summary-dashboard", | |
"attachments-results-summary-dashboard", | |
"results-summary-dashboard", | |
"charts-summary-dashboard", | |
"clinical-view-summary-dashboard", |
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 { Type, validator, validators } from '@openmrs/esm-module-config'; | |
const builtInFields = ['name', 'gender', 'dob', 'address', 'id', 'death'] | |
export const schema = { | |
sections: { | |
_type: Type.Array, | |
_default: ['demographics', 'contact', 'ids', 'death'], | |
_description: "An array of strings which are the keys from 'sectionDefinitions'", | |
_elements: { |
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
#!/usr/bin/env python3 | |
import argparse | |
import re | |
def main(lang): | |
en_strings = properties_to_dict(read_file("en")) | |
t_strings = properties_to_dict(read_file(lang)) | |
translated = {k: t_strings[k] for k in t_strings if en_strings[k] != t_strings[k]} |
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
// Example 1: Array of primitives | |
// input | |
foo: [2, 42, 99] | |
// schema | |
{ | |
foo: { | |
default: [1, 1, 2, 3], | |
arrayElements: { |
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
Example config: | |
foo: { | |
bar: 0, | |
baz: { | |
qux: "abc", | |
quy: "xyz" | |
} | |
} |
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/bash | |
# | |
# Extracts the Roxygen package documentation from each script file in the | |
# package root directory and appends it to README.md | |
# | |
# Documentation that you want included should start on the second line of the script | |
OUTFILE="README.md" | |
r_files=( *.R ) |
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/bash | |
# Put this file in ~/.local/share/nautilus/scripts/ | |
# Remember to `chmod +x` it | |
IFS=' | |
' | |
for file in ${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS} | |
do | |
if [[ $file == *.cloud ]] || [[ $file == *.cloudf ]] | |
then |
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
#! /usr/bin/env jython | |
# | |
# Based on https://gist.github.com/shapr/507bcbf3e8cfdc5d3549 | |
# | |
# Install prereqs: | |
# sudo apt-get install jython libcommons-logging-java libcommons-lang-java | |
# | |
# Put the following jars into the same directory as this file: | |
# jackcess: https://sourceforge.net/projects/jackcess/files/ | |
# jackcess-encrypt: https://sourceforge.net/projects/jackcessencrypt/files/ |
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
1; % script file | |
function res = deleted_pivot(M, i, j) | |
% Calculates the deleted pivot of matrix M at row i, column j | |
% as described by Greg Kuperberg in "Kasteleyn cokernels" | |
% X = the jth column of M with element i removed | |
X = [M(:,j)(1:i-1); M(:,j)(i+1:end)]; | |
% Yt = the ith row of M with element j removed | |
Yt = [M(i,:)(1:j-1), M(i,:)(j+1:end)]; |
NewerOlder