Skip to content

Instantly share code, notes, and snippets.

View Zettersten's full-sized avatar
💭
If your happy and you know stomp your feet

Erik Zettersten Zettersten

💭
If your happy and you know stomp your feet
View GitHub Profile
nyan = (function() {
var MP3_SRC = "https://rawcdn.githack.com/jimpo/nyancat/b5d9706593896a84db3e06e55a0bce63c29dbe00/nyancat.mp3";
var IMG_SRC = "https://rawcdn.githack.com/jimpo/nyancat/b5d9706593896a84db3e06e55a0bce63c29dbe00/nyancat.gif";
var STEP_SIZE = 25;
var audio, body, img, targetX, targetY, mouseX = 0, mouseY = 0;
function createAudioElement() {
audio = document.createElement('embed');
@Zettersten
Zettersten / gist:6e3da5c45139976b7e54dd0a3c2fbac1
Last active March 5, 2019 15:25
Example Invoice Line Item Calculation
// REQUEST
{
"entries": [
{
"taxRate": 100,
"discountRate": 50,
"shippingAmount": 20,
"description": "This is the first line item",
"details": "Additional details",
"quantity": "2",
@Zettersten
Zettersten / 001 - \odata\schools?BusinessId=cjsjfvj080001mw3b1do8sfxe - request.http
Created February 25, 2019 02:51
Transaction to https://localhost:44326/odata/schools?BusinessId=cjsjfvj080001mw3b1do8sfxe
GET /odata/schools?BusinessId=cjsjfvj080001mw3b1do8sfxe HTTP/1.1
Host: localhost:44326
@Zettersten
Zettersten / createPaymentInstrument.js
Last active August 29, 2015 14:20
'Adapter' - Create Account
/*
* Http Post
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters
* Method: Create Payment Instrument
*/
/*
* Request Body
*/
{
@Zettersten
Zettersten / signIn.js
Created April 30, 2015 21:01
'Adapater' - Sign In
/*
* Http Post
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters
* Method: Sign In
*/
/*
* Request Body
*/
{
@Zettersten
Zettersten / easy
Created December 30, 2014 02:44
Test Template
this is some text !
@Zettersten
Zettersten / Refund.js
Created October 1, 2014 18:12
'ThePlatform' - Refund Request
/*
* Http Post
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters
* Method: Refund
*/
/*
* Request Body
*/
{
@Zettersten
Zettersten / Charge.js
Last active August 29, 2015 14:07
Testing Alphanumeric Gist ID
/*
* Http Post
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters
* Method: Charge
*/
/*
* Request Body
*/
{
@Zettersten
Zettersten / CreatePaymentInstrument.js
Created October 1, 2014 17:57
'ThePlatform' - Capture
/*
* Http Post
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters
* Method: Capture
*/
/*
* Request Body
*/
{
@Zettersten
Zettersten / CreatePaymentInstrument.js
Last active August 29, 2015 14:07
'ThePlatform' - Create Payment Instrument Request
/*
* Http Post
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters
* Method: Create Payment Instrument
*/
/*
* Request Body
*/
{