Skip to content

Instantly share code, notes, and snippets.

View BDQ's full-sized avatar
💥

Brian Quinn BDQ

💥
View GitHub Profile
@BDQ
BDQ / resolver.transformer.ts
Last active September 2, 2021 12:19
AWS S3 Object Lambda CDK (1.18.0) Example
const { S3 } = require("aws-sdk");
const axios = require("axios").default;
exports.handler = async (event: any) => {
console.log(event);
const s3 = new S3();
// Retrieve the operation context object from event. This has info to where the WriteGetObjectResponse request
// should be delivered and a presigned URL in `inputS3Url` where we can download the requested object from.
// The `userRequest` object has information related to the user which made this `GetObject` request to S3OL.
require 'lotus-controller'
require 'byebug'
module Feature
def self.create(str)
str.reverse
end
end
module Sack
// Include gulp
var gulp = require('gulp');
// Include Our Plugins
var jshint = require('gulp-jshint');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var tmplte = require('gulp-jstemplater');
{
"error": {
"summary": "Dead lock timeout",
"flow": "My Quickbooks flow",
"flow_id": "abc123",
"count": 10,
"created_at": "Some time",
"connection": "Quickbooks",
"connection_id": "abc123",
"webhook": "Add Products",
@BDQ
BDQ / 1-request.json
Last active December 26, 2015 05:29
Shipment confirmation polling.
{
"message_id": "88af1dc5fe53543f1200f517",
"message": "ctl:shipment:confirmation:poll",
"payload": {
"parameters": [
{
"name": "ctl.last_confirmation_shipment",
"value": "H00000000001"
},
{
@BDQ
BDQ / endpoint.json
Last active December 24, 2015 10:19
VPD endpoint.json
{
"name": "vpd",
"display": "VPD Endpoint",
"description": "Shipping integration with VPD",
"help": "http://guides.spreecommerce.com/integration/vpd_integration.html",
"icon_url": "vpd.png",
"services": [
{
"name": "shipments",
"path": "/service/spree_order.p",
'notifications' => [
{
'level' => 'info',
'subject' => 'product exists' ,
'description' => 'product exists in the database'
}
]
object @address
attributes *address_attributes
child(:country) do |address|
attributes *country_attributes
end
child(:state) do |address|
attributes *state_attributes
end
@BDQ
BDQ / import.json
Last active December 19, 2015 12:39 — forked from schof/import.json
{
"message": "order:new",
"payload": {
"order": {
"channel": "Amazon",
"email": "test1@test.com",
"currency": "USD",
"line_items": [
{
"price": 19.99,
development:
adapter: postgresql
encoding: unicode
database: sandbox_master_dev
pool: 50
host: localhost