Skip to content

Instantly share code, notes, and snippets.

View cnizzardini's full-sized avatar

Chris Nizzardini cnizzardini

  • Erase Borders
View GitHub Profile
@cnizzardini
cnizzardini / pr-static-analysis.sh
Last active March 21, 2023 21:36
Generate a list of changed files in a branch to run against static analysis (see comments below)
#!/bin/bash
### Run static analysis on changed files only
#
# Determine the base branch for comparison
#
BASE_BRANCH="develop"
if [[ $BRANCH = *"hotfix/"* ]];then
BASE_BRANCH="master"
fi
@cnizzardini
cnizzardini / sabre-soapclient-dorequest.php
Created July 12, 2017 06:56
Sabre SoapClient::__doRequest
<?php
$sabreSoapServer = ''; // url
$pcc = ''; // sabre pcc
$username = ''; // sabre username
$password = ''; // sabre password
$xmlStr = '<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<MessageHeader xmlns="http://www.ebxml.org/namespaces/messageHeader">
@cnizzardini
cnizzardini / nfl_teams.sql
Last active January 24, 2020 16:05
List of NFL teams in SQL format (MySQL) including name, abbreviations, conference, and division. Comment if you find any errors. For CSV format see https://gist.github.com/cnizzdotcom/13d0a072adb35a0d5817
--
-- Table structure for table `teams`
--
CREATE TABLE IF NOT EXISTS `teams` (
`id` tinyint(1) unsigned NOT NULL,
`name` varchar(32) NOT NULL,
`abbreviation` char(3) NOT NULL,
`conference` char(3) NOT NULL,
`division` char(5) NOT NULL
@cnizzardini
cnizzardini / nfl_teams.csv
Last active January 30, 2024 23:03
List of nfl teams as a CSV: name,abbreviation,conference,division for MySQL format. Please comment if you find any errors.
ID Name Abbreviation Conference Division
1 Arizona Cardinals ARI NFC West
2 Atlanta Falcons ATL NFC South
3 Baltimore Ravens BAL AFC North
4 Buffalo Bills BUF AFC East
5 Carolina Panthers CAR NFC South
6 Chicago Bears CHI NFC North
7 Cincinnati Bengals CIN AFC North
8 Cleveland Browns CLE AFC North
9 Dallas Cowboys DAL NFC East