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
Function Convert-IpAddressStringToBinString { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory)] | |
[string]$IpAddress | |
) | |
$IpAddressFullBin = "" | |
foreach ($octet in $IPAddress.Split(".")) { |
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
[CmdletBinding()] | |
class DrawIOStyle { | |
[Hashtable]$elems | |
[bool]$IsImage | |
DrawIOStyle() { | |
$this.elems = New-Object -TypeName Hashtable | |
} |
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
I am attesting that this GitHub handle aschmidt75 is linked to the Tezos account tz1UbsLVDYYbc5itm5B7RgQjkXDqs3qdoS3T for tzprofiles | |
sig:edsigtumt29e7bT68gYrJhf5xNWGmsF6z6GEo4zLWdt5nU88sWyuVuzQbwfVGaD5c3YCMMfVrFzYdpQrgtjCj2AsKZ23ZuRtTna |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: nginx-conf | |
data: | |
nginx.conf: | | |
user nginx; | |
worker_processes 3; | |
error_log /var/log/nginx/error.log; | |
events { |
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
Instantiating chaincode. | |
enter Init | |
enter Invoke | |
requested function=registerIndividualParticipant, with args=[]string{"{ \"name\": \"Andreas\", \"address\": \"Some where 17, 50735 Cologne, DE\" }"} | |
enter registerIndividualParticipantInvocation.checkParseArguments | |
enter registerIndividualParticipant.process | |
arg=main.registerIndividualParticipantArg{Name:"Andreas", Address:"Some where 17, 50735 Cologne, DE"} | |
newId: PutState to key=sample.PreciousCargoChaincode.IndividualParticipant.index, index=1 | |
key=sample.PreciousCargoChaincode.IndividualParticipant#0000000001 | |
PutState to key=sample.PreciousCargoChaincode.IndividualParticipant#0000000001, data=main.IndividualParticipant{Participant:main.Participant{ID:main.ID{ID:"0000000001"}, Name:"Andreas"}, Address:"Some where 17, 50735 Cologne, DE"} |
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
#!/bin/bash | |
if [[ $# -ne 1 ]]; then | |
echo 'Usage: cat inputdata.json | ./invoke.sh FUNCTIONNAME' | |
exit 1 | |
fi | |
FUNCTION="$1" | |
INPUTDATA0=`cat` | |
INPUTDATA=$(echo $INPUTDATA0 | sed 's/\"/\\"/g') |
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
func (r registry) create(stub shim.ChaincodeStubInterface, item interface{}) (string, error) { | |
idStr, err := newID(stub, r.typeStr) | |
if err != nil { | |
return "", errors.New("internal error generating index key") | |
} | |
ck, err := getShipmentKey(stub, idStr) | |
if err != nil { | |
return "", errors.New("internal error generating composite key") | |
} |
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
func trackingDataPointRegistry() registry { | |
return registry{ | |
typeStr: "TrackingDataPoint", | |
typeRT: reflect.TypeOf(&TrackingDataPoint{}), | |
} | |
} |
NewerOlder