This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
SD card test | |
This example shows how use the utility libraries on which the' | |
SD library is based in order to get info about your SD card. | |
Very useful for testing a card when you're not sure whether its working or not. | |
The circuit: | |
* SD card attached to SPI bus as follows: | |
** MOSI - pin 11 on Arduino Uno/Duemilanove/Diecimila |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Written by pcmanbob | |
# https://www.raspberrypi.org/forums/memberlist.php?mode=viewprofile&u=71930&sid=78c72fd5d7f7c6d39cf3b3ddcc9a0ed5 | |
# See: https://www.raspberrypi.org/forums/viewtopic.php?t=228207#p1399745 | |
# Import required Python libraries | |
import time | |
import RPi.GPIO as GPIO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"errors": [ | |
{ | |
"message": "The request failed authentication", | |
"error_code": "API_001", | |
"error_name": "Unauthenticated request" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign local_inv = product.variants.first.inventory_quantity %} | |
{% assign supplier_inv = product.metafields.inventory['supplier_inventory'] %} | |
{% if local_inv < 0 %} | |
{% assign local_inv = 0 %} | |
{% endif %} | |
{% if supplier_inv < 0 %} | |
{% assign supplier_inv = 0 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"labels"=>[{"request_id"=>"3255d1dd-f116-4f3e-8dc3-9a2fe5394ce8", "status"=>"PENDING", "request_date"=>"11-02-2019 13:17:22", "shipments"=>[{"shipment_id"=>"pWgK0EyLfLsAAAFozjkjhNpY", "options"=>{}}], "shipment_ids"=>["pWgK0EyLfLsAAAFozjkjhNpY"]}]} | |
"PENDING" | |
^C^C{"labels"=>[{"request_id"=>"3255d1dd-f116-4f3e-8dc3-9a2fe5394ce8", "status"=>"PENDING", "request_date"=>"11-02-2019 13:17:22", "shipments"=>[{"shipment_id"=>"pWgK0EyLfLsAAAFozjkjhNpY", "options"=>{}}], "shipment_ids"=>["pWgK0EyLfLsAAAFozjkjhNpY"]}]} | |
"PENDING" | |
{"labels"=>[{"request_id"=>"3255d1dd-f116-4f3e-8dc3-9a2fe5394ce8", "status"=>"PENDING", "request_date"=>"11-02-2019 13:17:22", "shipments"=>[{"shipment_id"=>"pWgK0EyLfLsAAAFozjkjhNpY", "options"=>{}}], "shipment_ids"=>["pWgK0EyLfLsAAAFozjkjhNpY"]}]} | |
"PENDING" | |
{"labels"=>[{"request_id"=>"3255d1dd-f116-4f3e-8dc3-9a2fe5394ce8", "status"=>"PENDING", "request_date"=>"11-02-2019 13:17:22", "shipments"=>[{"shipment_id"=>"pWgK0EyLfLsAAAFozjkjhNpY", "options"=>{}}], "shipment_ids"=>["pWgK0EyLfLsAAAFozjkj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A quick test script or the customer: | |
OUT --> A0 | |
VCC --> 5V | |
GND --> GND | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'sinatra' | |
post '/ws' do | |
request.body | |
end |