Skip to content

Instantly share code, notes, and snippets.

View do-i's full-sized avatar

Joji Doi do-i

  • Ninjump
  • Holland, MI
View GitHub Profile
{
"asnNumber": 8850
}
{
"https://authorized_vendors.vendorportal.com": [],
"https://authorized_vendor_ids.vendorportal.com": [
5124
],
"https://authorized_payee_ids.vendorportal.com": [],
"iss": "https://modaoperandi-dev.auth0.com/",
"sub": "auth0|aaa749143f8700e849aaaaa",
"aud": [
"https://vendor-service.modaoperandi.com",
[
{
"styleNumber": "AST-RES15+++B",
"styleName": "Astere Printed Satin Dress",
"vendorColor": "multi",
"skus": [
{
"skuSize": "UK 8",
"quantity": 1,
"quantityReceived": 1,
{
"items": [
{
"styleNumber": "SAAD-325",
"styleName": "Sam Addams",
"color": "Ivory Black",
"styles": [
{
"size": "AU 0",
"quantityReceived": 4,
{
"styles": [
{
"styleNumber": "SAAD-325",
"styleName": "Sam Addams",
"color": "Ivory Black",
"skus": [
{
"size": "AU 0",
"quantityReceived": 4,
SELECT
po.purchase_order_number,
vs.color,
vs.name,
vs.style_code,
poi.size,
poi.received_quantity,
poi.quantity
FROM mojo_development.vendor_purchase_orders po
[
{
"sku": "SK113823",
"quantity": 8
},
{
"sku": "SK18",
"quantity": 3
}
]
@do-i
do-i / gist:4091f2ce2aba8933bf96be3cb59071aa
Created December 27, 2019 22:18
com.easypost.exception.EasyPostException: An error occured. Response code: 422 Response body:
{
"error" : {
"code" : "SHIPMENT.POSTAGE.FAILURE",
"message" : "The country associated with Shippers ShipperNumber must be the same as the shipments Shippers country.",
"errors" : [ ]
}
}
{
"fromAddress": {
"company": "Cool Brand",
"name": "Vendor Portman",
"street1": "1A Larkspur Cres",
"street2": "",
"city": "St. Albert",
"state": "AB",
"zipCode": "T8N2M4",
"country": "CA",
@do-i
do-i / sample.txt
Last active December 13, 2019 19:58
public void dealWithFile(String resourceName)
throws URISyntaxException, IOException {
URL url = Resources.getResource(resourceName);
URI uri = url.toURI();
Path path = Paths.get(uri);
// if file is relatively small
List<String> smallData = Files.readAllLines(path);
// if file is relatively large
Stream<String> bigData = Files.lines(path);
}