Skip to content

Instantly share code, notes, and snippets.

View samuelmale's full-sized avatar
🏠
Working from home

Samuel Male samuelmale

🏠
Working from home
View GitHub Profile
// Registry entries with renamed controls
const inbuiltControls = [
{
name: 'OHRIText',
component: OHRIText,
type: 'text',
},
{
name: 'OHRIRadio',
component: OHRIRadio,
{
"@openmrs/esm-patient-chart-app": {
"extensionSlots": {
"patient-chart-dashboard-slot": {
"remove": [
"charts-summary-dashboard",
"immunization-summary-dashboard",
"medications-summary-dashboard",
"encounters-summary-dashboard",
"appointments-summary-dashboard",
{
"name": "AMPATH POC Triage v1.2",
"uuid": "xxxx",
"processor": "EncounterFormProcessor",
"pages": [
{
"label": "Encounter Details",
"sections": [
{
"label": "Encounter Details",
@samuelmale
samuelmale / address-template.xml
Last active May 25, 2023 17:05
MSF Tech Assessments
<addressConfiguration>
<wipe>true</wipe>
<addressComponents>
<addressComponent>
<field>COUNTRY</field>
<nameMapping>Location.country</nameMapping>
<sizeMapping>40</sizeMapping>
<elementDefault>Cambodia</elementDefault>
<requiredInHierarchy>true</requiredInHierarchy>
</addressComponent>
import { age, ExtensionSlot, openmrsFetch } from '@openmrs/esm-framework';
import DataTableSkeleton from 'carbon-components-react/lib/components/DataTableSkeleton/DataTableSkeleton';
import { capitalize } from 'lodash';
import React, { useEffect, useMemo, useState } from 'react';
import EmptyState from '../components/empty-state/empty-state.component';
const columns = [
{
key: 'name',
header: 'Name',
import React, { useCallback, useEffect, useState } from 'react';
import { Button, ButtonSet, Link } from 'carbon-components-react';
import styles from './_form.scss';
import { Form, Formik } from 'formik';
import * as Yup from 'yup';
import { OHRIFormContext } from './ohri-form-context';
import { openmrsObservableFetch, useCurrentPatient, useSessionUser } from '@openmrs/esm-framework';
import { getFieldComponent, getHandler } from './registry/registry';
import { saveEncounter } from './ohri-form.resource';
import { PatientBanner } from '../components/patient-banner/patient-banner.component';
@samuelmale
samuelmale / emojis-short-codes.md
Last active September 7, 2020 10:06 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
encryption.vector=2qtzvFDaDEeZbfzsNPFysg\=\=
connection.url=jdbc\:mysql\://localhost\:3306/openmrs_distro-icrc41?autoReconnect\=true&sessionVariables\=default_storage_engine%3DInnoDB&useUnicode\=true&characterEncoding\=UTF-8
module.allow_web_admin=true
connection.username=root
auto_update_database=false
encryption.key=SLWgCzPamAHyCQYJ06mqeA\=\=
connection.driver_class=com.mysql.jdbc.Driver
connection.password=pass

Nyungura Patric, your an asshole.

I gat you bitch!

/**
* Java implementation of the Bisection method for solving equations.
*
* @author samuel
*/
public class Bisection {
private static final float TOLORANCE = (float) 0.001;
/**