This file contains hidden or 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 | |
# Configuration for the script | |
POSTFIX_CONFIG=/overrides/postfix.cf | |
POSTFIX_SASL=/etc/postfix/sasl_passwd | |
# Set a safe umask | |
umask 077 | |
# Add the relay host params |
This file contains hidden or 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
“Some of us consider the bomb in the same category as poison gas and were against its use on a civilian population. | |
Others were of the opinion that in total war, as carried on in Japan, there was no difference between civilians and | |
soldiers, and that the bomb itself was an effective force tending to end the bloodshed, warning Japan to surrender and | |
thus to avoid total destruction. It seems logical that he who supports total war in principle cannot complain of a war | |
against civilians. The crux of the matter is whether total war in its present form is justifiable, even when it serves a | |
just purpose. Does it not have material and spiritual evil as its consequences which far exceed whatever good might | |
result? When will our moralists give us a clear answer to this question?” |
This file contains hidden or 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 bash | |
set -Eeuo pipefail | |
msg() { | |
echo >&2 -e "${1-}" | |
} | |
is_readonly='[^>]*readonly="true\(\)"' | |
is_string='[^>]*type="string"' | |
is_required='[^>]*required="true\(\)"' |
This file contains hidden or 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
/* | |
To use this script: | |
- Save this script into a directory | |
- Include a PNG image in the directory called SamplePNG_1.png | |
- From within that directory, install nano: `npm install nano` | |
- Update the constants below to match your desired values | |
- Run the script: 'node couch.js` | |
*/ | |
const NUMBER_OF_DOCS = 2; | |
const STARTING_INDEX = 1; // Update this on subsequent runs to avoid id conflicts when running the script multiple times |
This file contains hidden or 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
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml"> | |
<h:head> | |
<h:title>Photos on Android - Demo Form</h:title> | |
<model> | |
<instance> | |
<photos-on-android id="159_file_picker"> | |
<my_photo/> | |
<meta> | |
<instanceID/> | |
</meta> |
This file contains hidden or 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
const getValue = function(obj) { | |
let val; | |
if (obj.t === 'arr') { | |
val = obj.v && obj.v.length && obj.v[0]; | |
} else { | |
val = obj.v; | |
} | |
if (!val) { | |
return ''; |
This file contains hidden or 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
const { expect } = require('chai'); | |
const TestRunner = require('cht-conf-test-harness'); | |
const harness = new TestRunner(); | |
const ITERATIONS = 10; | |
const PED_INPUTS = [ | |
[], | |
[], |
This file contains hidden or 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
Beatrice | Alex | 1.20 | |
---|---|---|---|
Carl | Alex | 45 | |
Carl | Beatrice | 12.50 | |
Alex | Beatrice | 19.22 | |
Beatrice | Carl | 67.90 | |
Carl | Beatrice | 12.80 | |
Carl | Alex | 15.88 | |
Beatrice | Carl | 71.42 | |
Beatrice | Alex | 4.54 | |
Beatrice | Carl | 28.76 |
This file contains hidden or 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": "6b7e8f42-c2f0-494b-b343-ebf83d289587", | |
"_rev": "1-9c396777743f1e21225cbf8831db22c6", | |
"form": "non_relevant_inputs", | |
"type": "data_record", | |
"content_type": "xml", | |
"reported_date": 1693502842407, | |
"contact": { | |
"_id": "74b386c0-a291-4c8b-8203-0da07a3b0173", | |
"parent": { |
This file contains hidden or 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
const CHAR_DICT: Record<string, string> = { | |
' _ | ||_| ': '0', | |
' | | ': '1', | |
' _ _||_ ': '2', | |
' _ _| _| ': '3', | |
' |_| | ': '4', | |
' _ |_ _| ': '5', | |
' _ |_ |_| ': '6', | |
' _ | | ': '7', | |
' _ |_||_| ': '8', |
OlderNewer