Skip to content

Instantly share code, notes, and snippets.

View jessemlay's full-sized avatar

Jesse jessemlay

  • Wellgood Consulting
  • Santa Fe, NM
View GitHub Profile
const echoPostRequest = {
url: pm.environment.get('API_URL'),
method: 'POST',
header: 'Content-Type:application/json',
body: {
mode: 'application/json',
raw: JSON.stringify(
{
userName: pm.environment.get('userName'),
passWord:pm.environment.get('passWord')
/*Shortcut menu*/
.menu-item,
label.menu-open-button {
background: #4C6E9D;
border-radius: 50%;
width: 45px;
height: 45px;
position: absolute !important;
padding: 0;
right: 0;
@jessemlay
jessemlay / Extensions.cs
Created February 15, 2021 19:50
useful extension methods
public static class MyExtensions
{
public static bool IsBetween<T>(this T value, T min, T max) where T : IComparable
{
return (min.CompareTo(value) <= 0) && (value.CompareTo(max) <= 0);
}
}
@jessemlay
jessemlay / cloudSettings
Created October 16, 2019 20:15
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-10-16T20:15:20.984Z","extensionVersion":"v3.4.3"}
// form.js
const formId = "save-later-form"; // ID of the form
const url = location.href; // href for the page
const formIdentifier = `${url} ${formId}`; // Identifier used to identify the form
const saveButton = document.querySelector("#save"); // select save button
const alertBox = document.querySelector(".alert"); // select alert display div
let form = document.querySelector(`#${formId}`); // select form
let formElements = form.elements; // get the elements in the form
/**
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:n1="urn:hl7-org:v3" xmlns:in="urn:lantana-com:inline-variable-data">
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"><!-- Do NOT edit this HTML directly: it was generated via an XSLT transformation from a CDA Release 2 XML document. -->
<title class="cda-title">Community Health and Hospitals: Transition of Care/Referral Summary</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.1/jquery.min.js" xmlns:xs="http://www.w3.org/2001/XMLSchema"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js"
xmlns:xs="http://www.w3.org/2001/XMLSchema"></script>
@jessemlay
jessemlay / cloudSettings
Last active October 1, 2018 20:18
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-09-10T19:59:42.700Z","extensionVersion":"v3.1.2"}
@jessemlay
jessemlay / settings.json
Last active February 19, 2018 23:17
Settings for Vscode
{
"workbench.iconTheme": "material-icon-theme",
"files.autoSave": "afterDelay",
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"git.confirmSync": false,
"editor.formatOnSave": true,
"vsicons.projectDetection.autoReload": true,
"git.autofetch": true,
"gitlens.gitExplorer.files.layout": "auto",
import { InAppBrowser, InAppBrowserObject } from '@ionic-native/in-app-browser';
import { UserServiceProvider } from './../../providers/user-service/user-service';
import { NgForm } from '@angular/forms';
import { Component } from '@angular/core';
import { IonicPage, Events, Platform, AlertController } from 'ionic-angular';
import { AndroidFingerprintAuth, AFAAuthOptions } from '@ionic-native/android-fingerprint-auth';
import { TouchID } from '@ionic-native/touch-id';
import { Keychain } from '@ionic-native/keychain';
import { ToastController } from 'ionic-angular/components/toast/toast-controller';
import { LoginInfo } from '../../interfaces/login-Info';
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Socket } from 'ng-socket-io';
import { Subject } from 'rxjs/Subject';
/*
Generated class for the CryptoSocketProvider provider.
See https://angular.io/guide/dependency-injection for more info on providers
and Angular DI.