Skip to content

Instantly share code, notes, and snippets.

Tim Shnaider TimNZ

Block or report user

Report or block TimNZ

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
TimNZ / cocart-node.js
Last active Apr 8, 2020
Testing simultaneous guest user cart management of CoCart, ensuring each session is separate
View cocart-node.js
const axios = require("axios").default
const axiosCookieJarSupport = require("axios-cookiejar-support").default
const CookieJar = require("tough-cookie").CookieJar
const assert = require('assert')
let instanceId = 1
const createAxiosInstance = () => {
const axiosInstance = axios.create({
baseURL: "",
withCredentials: true,
TimNZ / PaginationComponent.js
Last active Sep 2, 2019
Custom PaginationComponent for React Table when it is not practical to know total # of pages
View PaginationComponent.js
* Override React Table pagination component to be able to control Previous/Next
import React, { Component } from 'react'
import classnames from 'classnames'
const defaultButton = props => (
<button type="button" {...props} className="-btn">
View marionette.gauntlet.js
// Marionette.Gauntlet v0.0.0
// --------------------------
// Build wizard-style workflows with an event-emitting state machine
// Requires Backbone.Picky (
// Copyright (C) 2012 Muted Solutions, LLC.
// Distributed under MIT license
// Modifications by Tim Shnaider
You can’t perform that action at this time.