First, get the repo:
git clone https://github.com/apotdevin/thunderhub
In the thunderhub repo, there is a folder named "example" and inside docker-compose.yml you can start from.
I modified it as follows:
First, get the repo:
git clone https://github.com/apotdevin/thunderhub
In the thunderhub repo, there is a folder named "example" and inside docker-compose.yml you can start from.
I modified it as follows:
<?php | |
if ($_SERVER['SERVER_NAME'] != 'ln-gateway') { echo 'Bad host'; exit; } | |
require_once __DIR__ . '/../app/Util/Autoloader.php'; | |
require_once __DIR__ . '/../app/Util/Di.php'; | |
use App\Util\Autoloader; | |
use App\Util\Di; |
BitcoinLite is a sidechain of Bitcoin designed for smaller devices and designed | |
for use with Lightning Network. | |
The blocksize of BitcoinLite is 64kb instead of 1024kb. | |
The block generation time of BitcoinLite is every 60 minutes instead of 10 minutes. | |
All other properties of BitcoinLite is an exact replica of Bitcoin itself. | |
This essentially makes the blockchain storage requirements 96X less than the main Bitcoin one. | |
The Bitcoin blockchain from ~2009-2020 has grown to almost 300 GB. |
class User extends Component | |
{ | |
componentDidMount() { | |
// Fetch the user info from API using async GET method and knows | |
// the username to fetch by checking the 'queryName' prop. The | |
// result will call setState({userState: responseData}) thus updating | |
// the unistore state for the user. | |
this.props.apiGetUserAction() | |
} | |
$ phpunit --stop-on-failure ZendTest/Session/ | |
PHPUnit 3.6.10 by Sebastian Bergmann. | |
Configuration read from /Users/thorie/dashboard.bitgravity.com-wsa2/vendor/git-zf2/tests/phpunit.xml | |
^[[31;1mE^[[0m | |
Time: 0 seconds, Memory: 12.75Mb |
class Module | |
{ | |
public function onBootstrap($e) | |
{ | |
$moduleManager = $e->getApplication()->getServiceManager()->get('modulemanager'); | |
$sharedEvents = $moduleManager->getEventManager()->getSharedManager(); | |
$sharedEvents->attach('Zend\Mvc\Controller\AbstractRestfulController', MvcEvent::EVENT_DISPATCH, array($this, 'mvcPreDispatch'), -100); | |
} |
<?php | |
/** | |
Run this from the root of ZendSkeletonApplication/ because it uses the same autoloader. | |
This bug shows an error like: | |
PHP Fatal error: spl_autoload(): Class Zend\Db\Sql\Insert could not be loaded in /home/thorie/github/thorie7912/ZendSkeletonApplication/vendor/ZF2/library/Zend/Db/Sql/Sql.php on line 77 |
Fatal error: spl_autoload(): Class Zend\Db\Sql\Insert could not be loaded in /home/thorie/github/thorie7912/ZendSkeletonApplication/vendor/ZF2/library/Zend/Db/Sql/Sql.php on line 76 Call Stack: 23.2900 16226632 | |
1. Zend\Session\SaveHandler\DbTableGateway->write(???, ???) /home/thorie/github/thorie7912/ZendSkeletonApplication/vendor/ZF2/library/Zend/Session/SaveHandler/DbTableGateway.php:0 43.2298 16314200 | |
2. Zend\Db\TableGateway\AbstractTableGateway->insert(???) /home/thorie/github/thorie7912/ZendSkeletonApplication/vendor/ZF2/library/Zend/Session/SaveHandler/DbTableGateway.php:147 71.7756 16599928 | |
3. Zend\Db\Sql\Sql->insert(???) /home/thorie/github/thorie7912/ZendSkeletonApplication/vendor/ZF2/library/Zend/Db/TableGateway/AbstractTableGateway.php:258 |
<?php | |
/** | |
* Zend Framework (http://framework.zend.com/) | |
* | |
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository | |
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | |
* @license http://framework.zend.com/license/new-bsd New BSD License | |
*/ | |
namespace Application; |
<?php | |
/** | |
* Zend Framework (http://framework.zend.com/) | |
* | |
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository | |
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | |
* @license http://framework.zend.com/license/new-bsd New BSD License | |
*/ | |
namespace Application\Controller; |