This file contains hidden or 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
// Alternate way to get the name from a given Id | |
String objName = objId.getSObjectType().getDescribe().getName(); |
This file contains hidden or 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
device.on("senddata", function(data) { | |
// Set URL to your web service | |
local url = "https://www.mywebservice/object"; | |
// Set Content-Type header to json | |
local headers = { "Content-Type": "application/json" }; | |
// encode data and log | |
local body = http.jsonencode(data); | |
server.log(body); |
This file contains hidden or 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
// Shift Register via SPI Example | |
// Configure Hardware | |
// Pin 1 is the reset line and should be high unless driven low | |
hardware.pin1.configure(DIGITAL_OUT_OD_PULLUP); | |
// Pin 8 is the output enable line and should also be high unless driven low | |
hardware.pin8.configure(DIGITAL_OUT_OD_PULLUP); |
This file contains hidden or 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
#Add to .bashrc_sfdc | |
if [ -f $HOME/.bashrc_sfdc ] | |
then | |
. $HOME/.bashrc_sfdc | |
fi |
This file contains hidden or 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
export TOKEN="123abc" | |
export SERVER="http://localhost:32400" | |
curl -s -X GET -H "X-Plex-Token: $TOKEN" -H "Accept: application/json" $SERVER/library/sections/1/all | \ | |
jq ".MediaContainer.Metadata |= map(select(.Media | length > 1))" | \ | |
jq '.MediaContainer.Metadata[].Media[].Part[].file' |