Skip to content

Instantly share code, notes, and snippets.

View tukutela's full-sized avatar

Mark Walker tukutela

View GitHub Profile
@tukutela
tukutela / pricing.js
Created May 11, 2020 03:50
UTINT Pricing Calcuator
// pricing strategy
import numeral from 'numeraljs'
import _ from 'lodash'
var DEFAULTS = {
NO_PRICING: '$-',
HEIGHT_ADDN_CUT_MM: 30,
WIDTH_ADDN_CUT_MM: 60,
MINIMUM_MEASUREMENT_MM: 100,
@tukutela
tukutela / JournalLine.cs
Last active August 14, 2017 00:38
JournalLine.cs
using System;
using System.Collections.Generic;
using JournalPlay.webservices.sandbox.netsuite.com;
namespace JournalPlay
{
/// <summary>
/// Spark Power Journal Line, representing a single line entry in a journal.
/// </summary>
public class SPJournalLine
NetSuiteService service = new NetSuiteService();
service.CookieContainer = new CookieContainer();
ApplicationInfo appInfo = new ApplicationInfo();
appInfo.applicationId = "[XXXXXXXXXXXXXXXXXXXXXXXXXXX"; // application code id
service.applicationInfo = appInfo;
Passport passport = new Passport();
passport.account = "XXXXXXXXXXXXXX"; // account code
passport.email = "[EMAIL]";
@tukutela
tukutela / ne_example.json
Last active May 11, 2017 00:25
NewElectric Integration Response Example
{
"result": {
"action": "trial",
"period": "Apr 2017",
"accounts": [
{
"id": "405",
"name": "**Prepaid Business Tax",
"opening": "0.00",
"ending": "0.00"
{
"method": "GET",
"resourcePath": "/tester/{id}",
"querystring": {
"x": "4",
"y": "5"
},
"path": {
"id": "g"
},
@tukutela
tukutela / event.json
Created June 12, 2016 05:24
Example SNS Message
{
"Records": [
{
"EventVersion": "1.0",
"EventSubscriptionArn": "arn:aws:sns:EXAMPLE",
"EventSource": "aws:sns",
"Sns": {
"SignatureVersion": "1",
"Timestamp": "1970-01-01T00:00:00.000Z",
@tukutela
tukutela / driver.js
Created January 18, 2016 20:56
webdriver.io addCommand Example
'use strict'
const path = require('path')
const webdriverio = require('webdriverio')
var client = webdriverio.remote({
host: '127.0.0.1',
port: 9515,
desiredCapabilities: {
browserName: 'chrome',