Put genesis.json, Dockerfile, docker-compose.yml and .env files together in the same folder. Then run the command.
docker-compose up
| var SignedXml = require('xml-crypto').SignedXml; | |
| var FileKeyInfo = require('xml-crypto').FileKeyInfo; | |
| LocalSchema.statics.sign = function(options, cb) { | |
| var user = options.user; | |
| if(user.orgId !== options.payload.orgId) { | |
| return cb(HD.errors.unauthorizedAction, {}); | |
| } |
| pragma solidity ^0.8.15; | |
| // SPDX-License-Identifier: MIT | |
| contract PaymentSplitter { | |
| address payable [] public recipients; | |
| event TransferReceived(address _from, uint _amount); | |
| constructor(address payable [] memory _addrs) { | |
| for(uint i=0; i<_addrs.length; i++){ | |
| recipients.push(_addrs[i]); |
| using System; | |
| public class TimeUtils { | |
| private static readonly DateTime Jan1st1970 = new DateTime | |
| (1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); | |
| public static long CurrentTimeMillis() | |
| { | |
| return (long) (DateTime.UtcNow - Jan1st1970).TotalMilliseconds; | |
| } |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| /* PAGINATION WITH SORTING AND PAGING */ | |
| const page = 1; // input page, min value 1 | |
| const limit = 2; // input limit min value 1 | |
| /* INPUT ARRAY */ | |
| const array = [ | |
| { Editable: true, Name: "Daniel Test", Site: "SE100"}, | |
| { Editable: true, Name: "Test new", Site: "SE100"}, | |
| { Editable: false, Name: "Test", Site: "SE100"}, | |
| ]; |
| #!/bin/bash | |
| # | |
| # Pre-commit hooks | |
| # Check branch name | |
| BRANCH_NAME_LENGTH=`git rev-parse --abbrev-ref HEAD | grep -E '^t[0-9]{2,16}\_.*_[A-Za-z]{2,2}$' | wc -c` | |
| if [ ${BRANCH_NAME_LENGTH} -eq 0 ] ; then | |
| echo -e '\E[37;44m'"\033[1mERROR\033[0m in pre-commit hook: vim /export/web/.git/hooks/pre-commit" | |
| echo "Branch name should be like t00000_blah_blah_CA - brand is two letters" |
| #!/usr/bin/env bash | |
| ############################################################################### | |
| # | |
| # Automatically detects a merge on to master from a gitflow-style release | |
| # branch, e.g. release-1.1.1-alpha. If the merged branch matches, the major, | |
| # minor and patch versions are determined and a new release tag is created | |
| # locally. If remote origin exists, this tag will automatically be pushed. | |
| # | |
| # In addition to creating a tag, the release branch will automatically be | |
| # merged into the develop branch. If the branch has already been merged this |