Skip to content

Instantly share code, notes, and snippets.

View zbishop3455's full-sized avatar
👀
Spelunking the stack trace.

Zachary Bishop zbishop3455

👀
Spelunking the stack trace.
  • Best Choice Products
  • Indianapolis IN
View GitHub Profile
@wrimik
wrimik / fedex-rates-nodejs-soap-example.js
Last active January 25, 2022 18:19
FedEx Rates NodeJS SOAP Request
var soap = require('soap'); // npm i soap
var url = 'fedex-api/RateService/RateService_v24.wsdl'; // you'll need to download the wsdl file from https://www.fedex.com/en-us/developer/web-services/process.html#StandardServices
// if you change the order of these variables, everything gets fucked up because "wsdl" is a format for developers who have
// landed themselves in a middle circle of hell.
// this points at fedex's production server btw. if you use dev credentials you'll need to change the url WAAAY down
// by the bottom of the file, in "client.setEndpoint('https://ws.fedex.com:443/web-services');"
var data = {
"WebAuthenticationDetail": {
"UserCredential": {
@Lakerfield
Lakerfield / index.html
Last active January 11, 2024 15:36
Print ZPL from browser
<!doctype html>
<html lang="en">
<head>
<title>Print ZPL from browser</title>
</head>
<body>
<h1>Test page for print ZPL from browser!</h1>
<script type="text/javascript">
function printZpl(zpl) {
@manjeshpv
manjeshpv / passport.js
Last active February 29, 2024 15:11
Passport.js using MySQL for Authentication with Express
// config/passport.js
// load all the things we need
var LocalStrategy = require('passport-local').Strategy;
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',