Skip to content

Instantly share code, notes, and snippets.

View antoniovassell's full-sized avatar

Antonio Vassell antoniovassell

View GitHub Profile
@antoniovassell
antoniovassell / test.log
Last active February 12, 2019 15:30
npm test failing
antonio@xps  ~/code/test/fabric-sdk-node   release-1.4  git status
On branch release-1.4
Your branch is up to date with 'origin/release-1.4'.
nothing to commit, working tree clean
antonio@xps  ~/code/test/fabric-sdk-node   release-1.4  git pull origin release-1.4
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 12 (delta 10), reused 2 (delta 0), pack-reused 0
@antoniovassell
antoniovassell / LocalEthExchange.sol
Created May 11, 2018 17:21
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.23+commit.124ca40d.js&optimize=false&gist=
pragma solidity ^0.4.23;
/// MVP Contract to handle trading of eth - fiat currency.
contract LocalEthExchange {
// Trade statuses
bytes32 constant TRADE_STATUS_STARTED = 'TRADE_STATUS_STARTED';
bytes32 constant TRADE_STATUS_CANCELLED = 'TRADE_STATUS_CANCELLED';
bytes32 constant TRADE_STATUS_PAYMENT_DONE = 'TRADE_STATUS_PAYMENT_DONE';
bytes32 constant TRADE_STATUS_COMPLETED = 'TRADE_STATUS_COMPLETED';
@antoniovassell
antoniovassell / Coursetro.sol
Created May 11, 2018 17:21
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.23+commit.124ca40d.js&optimize=false&gist=
pragma solidity ^0.4.18;
contract Coursetro {
string fName;
uint age;
event Instructor(
string name
This file has been truncated, but you can view the full file.
orderer.example.com | 2017-11-30 17:03:06.358 UTC [policies] CommitProposals -> DEBU 518 In commit adding relative sub-policy Orderer/OrdererOrg/Readers to Channel
orderer.example.com | 2017-11-30 17:03:06.358 UTC [policies] GetPolicy -> DEBU 519 Returning policy OrdererOrg/Writers for evaluation
orderer.example.com | 2017-11-30 17:03:06.358 UTC [policies] CommitProposals -> DEBU 51a In commit adding relative sub-policy Orderer/OrdererOrg/Writers to Channel
orderer.example.com | 2017-11-30 17:03:06.358 UTC [policies] GetPolicy -> DEBU 51b Returning policy OrdererOrg/Admins for evaluation
orderer.example.com | 2017-11-30 17:03:06.358 UTC [policies] CommitProposals -> DEBU 51c In commit adding relative sub-policy Orderer/OrdererOrg/Admins to Channel
orderer.example.com | 2017-11-30 17:03:06.358 UTC [policies] GetPolicy -> DEBU 51d Returning policy Writers for evaluation
orderer.example.com | 2017-11-30 17:03:06.358 UTC [policies] CommitProposals -> DEBU 51e In commit ad
<?php
namespace App\Model\Table;
use App\Model\Entity\TransactionItem;
use ArrayObject;
use Cake\Core\Configure;
use Cake\Error\Debugger;
use Cake\Event\Event;
use Cake\ORM\Entity;
use Cake\ORM\Query;
<?php
namespace App\Controller;
use App\Controller\AppController;
use Cake\ORM\TableRegistry;
/**
* TransactionItems Controller
*
* @property \App\Model\Table\TransactionItemsTable $TransactionItems
@antoniovassell
antoniovassell / AppController.php
Last active August 29, 2015 14:22
Override of dateTime input to display datetime values in the user's timezone. Note how I include my custom class to override the Form helper class
<?php
App::uses('Controller', 'Controller');
App::uses('Category', 'Model');
App::uses('CakeTime', 'Utility');
/**
* Application Controller
*
* @package app.Controller
*/
@antoniovassell
antoniovassell / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">