This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| #!/bin/bash | |
| echo | |
| echo "Welcome to the Bitcoin address generator!" | |
| echo "input private key (32 bytes, hex format)" | |
| read priv | |
| echo "" | |
| echo "#####################################" | |
| # priv=0C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D # Testing only |
| var request = require('request'); | |
| const bitcoin = require('bitcoinjs-lib'); | |
| var buffer = require('buffer'); | |
| const bitcoinNetwork = bitcoin.networks.testnet; | |
| var rootUrl = "https://api.blockcypher.com/v1/btc/test3"; | |
| //create wallets | |
| const TestNet = bitcoin.networks.testnet3; |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| <?php | |
| $usuario = 'sigep'; | |
| $senha = 'n5f9t8'; | |
| $contrato = '9912208555'; | |
| $cartao = '0057018901'; | |
| $context = stream_context_create(array( | |
| 'ssl' => array( | |
| 'verify_peer' => false, | |
| 'verify_peer_name' => false, |
| <?php | |
| /** | |
| * Benchmarks BulkInserter at various batch sizes. | |
| * | |
| * Before running this script, make sure to: | |
| * | |
| * - set your PDO parameters in this file | |
| * - run composer install | |
| * - import setup.sql into your database |
| <?php | |
| class TimeoutClass extends Thread { | |
| public function __construct(callable $cb, int $time, $args){ | |
| $this->callback = $cb; | |
| $this->args = $args; | |
| $this->time = $time * 1000; | |
| } | |
| public function run(){ | |
| usleep($this->time); |
| FROM php:7.2-fpm | |
| COPY app /var/www/ | |
| EXPOSE 9000 |
| artifacts: | |
| when: on_failure | |
| paths: | |
| - tests/Browser/screenshots |
| # clone repo | |
| git clone https://github.com/imarc/laravel-echo-example | |
| cd laravel-echo-example | |
| # install php dependencies | |
| composer install | |
| composer run-script install-tasks | |
| # install npm dependencies and build | |
| npm install |
| <?php declare(strict_types=1); | |
| require_once __DIR__.'/vendor/autoload.php'; | |
| use Symfony\Component\Process\Process; | |
| $process = new Process(['php', 'index.php']); | |
| echo "Starting process\n"; | |
| $process->start(); |