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
| (function(){ | |
| var app = angular.module('FirstAngular', []); | |
| app.controller('FirstAppController', ['$scope', function($scope){ | |
| $scope.webpages = pages; | |
| }]); | |
| app.controller("PanelController", ['$scope', function($scope){ | |
| $scope.tab = 1; |
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
| FROM maven:3.2-jdk-7-onbuild | |
| CMD ["do-something-with-built-packages"] | |
| COPY . /usr/src/app | |
| RUN mvn package | |
| CMD["/distribution/target/project-1.0/bin/project run"] |
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
| from pyVim import connect | |
| from pyVmomi import vim, vmodl | |
| import threading, os, sys | |
| import atexit | |
| import argparse | |
| import getpass | |
| def get_args(): |
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
| import numpy | |
| # getting values from user for no. of rows and columns | |
| n = int(raw_input("Enter no. of rows: ")) | |
| m = int(raw_input("Enter no. of columns: ")) | |
| #generating matrix with the help of numpy | |
| matrix = numpy.zeros(shape=(n,m)) | |
| for rows in range(0,n): |
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
| membersrvc: | |
| image: hyperledger/fabric-membersrvc | |
| ports: | |
| - "7054:7054" | |
| command: membersrvc | |
| vp0: | |
| image: hyperledger/fabric-peer | |
| ports: | |
| - "7050:7050" | |
| - "7051:7051" |
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
| mkdir -p $GOPATH/src/github.com/chaincode_example02/ | |
| cd $GOPATH/src/github.com/chaincode_example02 | |
| Curl --request GET https://raw.githubusercontent.com/hyperledger/fabric/master/examples/chaincode/go/chaincode_example02/chaincode_example02.go > chaincode_example02.go |
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
| mkdir -p $GOPATH/src/github.com/hyperledger | |
| cd $GOPATH/src/github.com/hyperledger | |
| git clone http://gerrit.hyperledger.org/r/fabric |
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
| cd $GOPATH/src/github.com/chaincode_example02 | |
| go build |
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
| CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:7051 ./chaincode_example02 |
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
| POST localhost:7050/registrar | |
| { | |
| "enrollId": "jim", | |
| "enrollSecret": "6avZQLwcUe9b" | |
| } | |
| REST Response: | |
| 200 OK |
OlderNewer