Skip to content

Instantly share code, notes, and snippets.

View grgaortiz's full-sized avatar

George Ortiz grgaortiz

View GitHub Profile
# Docker file to build a CentOS LAMP Stack
# (CentOS and Apache latest versions, PHP 5.6.16, mssql, freetds and wktmltopdf)
FROM centos:latest
MAINTAINER Marco Ramos <mramos29@sapo.pt>
# Environment Variables
# Install essential packages
var request = require('request'),
username = '',
password = '',
url = 'http://company.mingle.thoughtworks.com/api/v2/projects/datariver/cards/execute_mql.json',
auth = 'Basic ' + new Buffer(username + ':' + password).toString('base64');
var options = {
method: 'GET',
url: url,
qs: {
@grgaortiz
grgaortiz / 10things_pm.md
Last active January 14, 2016 04:16
A List of 10 Things - Exciting items partitioned into two groups.

Most Exciting (in no particular order):

  • Talk to users
  • Decide core KPIs for projects at Zapier
  • Do support at Zapier
  • Commit HTML or JS code directly to our main repo
  • Use Sketch/Photoshop/etc. to design user flows and wireframes

Less Exciting (in no particular order):

@grgaortiz
grgaortiz / ChargeLag.sql
Created February 3, 2016 17:06
DataRiver charge lag lookup population query
INSERT into [&DashboardSchema].DashboardMonthlySummary_ChargeLag_ChargePostDate(
encounterSK
,DatePostChargeSK
,dashDatePeriod
,ChargeLag_Actual
,providerBillingSK
,providerServiceSK
,PlaceOfService
,CPTClass
,reportGroupSK
@grgaortiz
grgaortiz / PhysCompDisplay.php
Last active February 15, 2016 17:47
Display method for pays comp table
public function displayCompensation($instanceDBInt, $clientID, $query, $specialtyGroups, $providers, $currentPeriod) {
// Open conn
$conn = $this->conn($clientID);
$periods = array(
'201601'
, '201602'
, '201603'
, '201604'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>API Scenario</title>
<script type="text/javascript"
src="http://discoveryserver.eqc.local:8080/SpotfireWeb/GetJavaScriptApi.ashx?Version=4.0"></script>
<script type="text/javascript">
@grgaortiz
grgaortiz / web.config
Created February 22, 2016 23:34
7.0 web config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<!-- Do not edit these settings! -->
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="Spotfire.Dxp.Internal.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<section name="Spotfire.Dxp.Framework.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<section name="Spotfire.Dxp.Data.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<section name="Spotfire.Dxp.Data.Access.Properties.Settings" type="System.Config
<script type="text/javascript"
src="https://discovery1.eqc.local:8843/spotfire/wp/GetJavaScriptApi.ashx?Version=1.0"></script>
<!-- Scripts -->
<script type="text/javascript">
mixpanel.track('Discovery: View');
window.onload = function () {
var customization = new spotfire.webPlayer.Customization();
customization.showTopHeader = true;
customization.showToolBar = true;
<?php
/**
* DataRiver - Discovery Redirect
* (c) Equation 2016
* Created by: nfiscus
* Date: 5/6/2016
* Description:
* Redirect for Discovery
*/
Error message: Client found response content type of 'text/html; charset=UTF-8', but expected 'text/xml'.
The request failed with the error message:
--
<!DOCTYPE html>
<!--[if IE 9 ]><html class="ie9"><![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0" />
<title>DataRiver</title>