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
SELECT "primary"."NDC" as "primaryNDC", | |
"generic"."NDC" as "genericNDC", | |
"primary"."MONY", | |
"primary"."ProductName" as "primaryDrug", | |
"generic"."ProductName" as "genericDrug", | |
"primary"."Strength", | |
"primary"."StrengthUOM", | |
FROM "drugs" AS "primary", | |
"drugs" AS "generic" |
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
CREATE TABLE IF NOT EXISTS "drugs_list" ( | |
"NDC" TEXT, | |
"DrugName" TEXT, | |
"GenericName" TEXT, | |
"Strength" INTEGER, | |
"StrengthUOM" TEXT, | |
"DoseForm" TEXT, | |
"MONY" TEXT, | |
"GPI" REAL, | |
"PackageSize" REAL, |
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 sh | |
IFS=' '; | |
parse() { | |
while read -r line; do | |
list=${line} | |
for NDC in ${list[@]}; do | |
if [[ "list[${NDC}]" -gt 0 ]]; then |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <systemd/sd-bus.h> | |
static sd_bus_error error = SD_BUS_ERROR_NULL; | |
static sd_bus_message *response; | |
static sd_bus *bus; | |
static int result; | |
static const char *path; |
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
<?php | |
class UserCredentials { | |
public $Username; | |
public $Password; | |
public function __construct( $username, $password ) { | |
$this->Username = $username; | |
$this->Password = $password; | |
} | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> | |
<soap:Header> | |
<UserCredentials xmlns="http://mws.envisionrx.com/"> | |
<UserID>string</UserID> | |
<Password>string</Password> | |
</UserCredentials> | |
</soap:Header> | |
<soap:Body> | |
<GetBrandEquivalentByGenericNDC xmlns="http://mws.envisionrx.com/"> |
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
[http@saturn app]$ transform input.txt | |
Arr::unique => array_unique | |
Arr::unshift => array_unshift | |
Arr::values => array_values | |
Arr::walk_recursive => array_walk_recursive |
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
<?php | |
namespace App\Models; | |
class Plan extends Model | |
{ | |
protected $connection = 'sqlite3_db'; | |
public $timestamps = false; | |
protected $hidden = [ 'plan_id' ]; | |
protected $primaryKey = 'plan_type'; |
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
/* Copyright (c) 2014 Christopher Swenson. */ | |
#include <stdlib.h> | |
#include <string.h> | |
#ifndef VECTOR_NAME | |
#error "Must declare VECTOR_NAME" | |
#endif | |
#ifndef VECTOR_TYPE |
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
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
typedef struct { | |
union { | |
uint8_t zero: 1; | |
uint8_t fault: 1; | |
uint8_t present: 1; | |
uint8_t virtual: 1; |