Skip to content

Instantly share code, notes, and snippets.

View hemepositive's full-sized avatar

Jonathan White, MD hemepositive

  • Huntsville Hospital
  • Huntsville, AL
View GitHub Profile
// ==UserScript==
// @name pharmaCare
// @namespace oscar
// @include */oscarRx/choosePatient.do?*
// @version 0.1
// @run-at document-end
// @grant none
// ==/UserScript==
window.onload = function () {
resultFilterForPharmacare=function(oResultData,sQuery,sResultMatch){
/*****************************************************************************************************************
*
* Below is a list of drugs/medicine which can be used for populating a database with.
* I have compiled this list by referencing the A-Z Medicines list on the NHS website:
* http://www.nhs.uk/medicine-guides/pages/browsebymedicine.aspx
*
* This list was compiled by Benjamin Staker.
* email: ben@benstaker.com
* github: benstaker
*
(00) Emergency treatment of poisoning
(01) GASTRO-INTESTINAL SYSTEM
(01.01) Dyspepsia and gastro-oesophageal reflux disease
(01.01.01) Antacids and Simeticone
(01.01.01) -- magnesium trisilicate (Firstline - green)
(01.01.01) -- aluminium&magnesium hydroxide (Firstline - green)
(01.01.02) Compound alginates and proprietary indigestion preparations
(01.01.02) -- Gastrocote (Firstline - green)
(01.01.02) -- Gaviscon Advance (Firstline - green)
(01.01.02) -- Gaviscon Infant (Firstline - green)
@hemepositive
hemepositive / My-CV---made-using-HTML-and-CSS.markdown
Created December 16, 2016 22:41 — forked from ProProgrammer/My-CV---made-using-HTML-and-CSS.markdown
My CV - Made using HTML / CSS knowledge acquired at Codecademy.com

My CV - made using HTML and CSS

This is my first implementation. I learnt CSS on 15 Jun 2013 at Codecademy.com and as a final project titled "Build your resume!" I took it seriously and decided to go on creating my own Resume using my CSS / HTML knowledge so far (whatever gained from Codecademy.com)

A Pen by Deep Sukhwani on CodePen.

License.

@hemepositive
hemepositive / learning.md
Created January 29, 2017 17:46 — forked from sibelius/learning.md
Learning Path React Native

Basics

  • Learn how to start a new react native project
  • Run it on ios simulator, on android emulator, on a real iPhone device and on a real Android device, with and without debugging enabled.
  • Learn how to upgrade a react native project
  • Learn how to add a package to the project
  • Learn how to add a package that has a native dependency (https://github.com/airbnb/react-native-maps, https://github.com/evollu/react-native-fcm) - DO NOT USE COCOAPODS
  • Learn how to use fetch to get data from your backend

Learn Navigation

ES6 cheat sheet, with very tasty examples

Declarations

let - prevents javascript hoisting to top of document, variables are scoped to function (no more undefined error when trying to call a var outside a functions scope, you get a ReferenceError which is more predictable/expected).

const - provides constants, cannot be redefined, raises syntax error

Function Arguments

@hemepositive
hemepositive / BasicControlledForm.js
Created October 26, 2017 20:47 — forked from siakaramalegos/BasicControlledForm.js
Basic controlled inputs form
import React, { Component } from 'react'
export default class BasicControlledForm extends Component {
constructor() {
super()
// Initialize the values for our input properties with empty strings
this.state = {
firstName: '',
spiritAnimal: '',
}
@hemepositive
hemepositive / UncontrolledSerializedForm.js
Created October 26, 2017 20:49 — forked from siakaramalegos/UncontrolledSerializedForm.js
Basic uncontrolled inputs using form serialization to get data from form
import React, { Component } from 'react'
// Import the serialize function from the form-serialize package
import serialize from 'form-serialize'
export default class UncontrolledSerialized extends Component {
onSubmit = (e) => {
e.preventDefault()
// Usually, we would pass the final input values to a function that
// would do something with the data like persist it to a database.
// Using serialization, we just need to pass that function the
@hemepositive
hemepositive / UncontrolledRefForm.js
Created October 26, 2017 20:50 — forked from siakaramalegos/UncontrolledRefForm.js
Basic uncontrolled inputs form using refs
import React, { Component } from 'react'
export default class UncontrolledRefsForm extends Component {
onSubmit = (e) => {
e.preventDefault()
// Usually, we would pass the final input values to a function that
// would do something with the data like persist it to a database.
// Using refs, we just need to pass the reference values.
console.log({
firstName: this.firstName.value,
//Look for other responsivevoice instances
/*if (window.parent != null) {
var iframes = window.parent.document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; i++) {
//iframes[i].style.width = "300px"
}
}*/
if (typeof responsiveVoice != 'undefined') {
console.log('ResponsiveVoice already loaded');