Skip to content

Instantly share code, notes, and snippets.

View samuraisam's full-sized avatar

Samuel Sutch samuraisam

View GitHub Profile
package org.brd.blockchaindb.chaindata.cassandra.cql;
import lombok.extern.slf4j.Slf4j;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionException;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
{
"transaction_id": "bitcoin-testnet:e6d0bbd26772456dc0e64221701e734854737476fcb23a0f77d721e5f27a9685",
"identifier": "e6d0bbd26772456dc0e64221701e734854737476fcb23a0f77d721e5f27a9685",
"hash": "5c6fb67fc71a80dbb0853db1b00f7a608426bbaf1d8a63125a70fe524cdbe5b7",
"blockchain_id": "bitcoin-testnet",
"timestamp": "1970-01-19T03:18:15.847+0000",
"_embedded": {
"transfers": [
{
"transfer_id": "bitcoin-testnet:e6d0bbd26772456dc0e64221701e734854737476fcb23a0f77d721e5f27a9685:0",
{
"_embedded": {
"blockchains": [
{
"name": "Bitcoin Cash",
"id": "bitcoincash-mainnet",
"native_currency_id": "bitcoincash-mainnet:__native__",
"fee_estimates": [
{
"fee": {
pragma solidity ^0.4.18;
// File: contracts/zeppelin-solidity-1.4/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
ETHERSCAN:
0x60606040526000600360146101000a81548160ff0219169083151502179055506040805190810160405280600b81526020017f427265616420546f6b656e000000000000000000000000000000000000000000815250600490805190602001906200006c92919062000107565b506040805190810160405280600381526020017f425244000000000000000000000000000000000000000000000000000000000081525060059080519060200190620000ba92919062000107565b50601260065533600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001b6565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200014a57805160ff19168380011785556200017b565b828001600101855582156200017b579182015b828111156200017a5782518255916020019190600101906200015d565b5b5090506200018a91906200018e565b5090565b620001b391905b80821115620001af57600081600090555060010162000195565b5090565b90565b61181080620001c66000396000f3006060604052600436106100e6576000357c0100000000000000000000000000000000000000000000000000000000900463fffff
pragma solidity ^0.4.15;
// File: contracts/BRDCrowdsaleAuthorizer.sol
/**
* Contract BRDCrowdsaleAuthorizer is used by the crowdsale website
* to autorize wallets to participate in the crowdsale. Because all
* participants must go through the KYC/AML phase, only accounts
* listed in this contract may contribute to the crowdsale
*/
0x008BEB42e2d4ee7410432B16CfcA823E8011ed51
defmodule TestHound.SMTP.Callbacks do
require Logger
defmodule State do
defstruct customer: "Default"
end
@behaviour :gen_smtp_server_session
def init(hostname, sesh_count, address, options) do
@samuraisam
samuraisam / genvendor.py
Created April 12, 2017 03:38
Generates a Go vendor directory in a bazel workspace
#!/usr/bin/env python3
import ast
import collections
import os
import subprocess
import sys
import time
load("@io_bazel_rules_go//go:def.bzl", "go_prefix", "go_library")
def external_go_package(base_pkg=None, name=None, deps=[], exclude_srcs=[]):
"""Macro which combines common aliases and globs for external go packages.
Defines a `go_library` of all Go sources files, except explicit exclusions
and test files.
If `name` is provided, the source files are assumed to live in a
subdirectory of the package. Otherwise, the target is given the same
name as the basename of the package.
Declares `go_prefix(base_pkg)` if none has been declared.