Skip to content

Instantly share code, notes, and snippets.

View cyborgshead's full-sized avatar
🎯
#cyber

C H cyborgshead

🎯
#cyber
View GitHub Profile
nodes:
- id: webcam
custom:
source: https://huggingface.co/datasets/dora-rs/dora-idefics2/raw/main/operators/opencv_stream.py
outputs:
- image
- id: idefics2
operator:
python: https://huggingface.co/datasets/dora-rs/dora-idefics2/raw/main/operators/idefics2_op.py
inputs:
@cyborgshead
cyborgshead / CTHelpers.sol
Created July 30, 2021 06:42 — forked from cag/CTHelpers.sol
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.6.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity ^0.6.0;
import { IERC20 } from "github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
library CTHelpers {
/// @dev Constructs a condition ID from an oracle, a question ID, and the outcome slot count for the question.
/// @param oracle The account assigned to report the result for the prepared condition.
/// @param questionId An identifier for the question to be answered by the oracle.
/// @param outcomeSlotCount The number of outcome slots which should be used for this condition. Must not exceed 256.
function getConditionId(address oracle, bytes32 questionId, uint outcomeSlotCount) internal pure returns (bytes32) {
@cyborgshead
cyborgshead / awesome_explorers.md
Last active June 11, 2017 12:20 — forked from mastercyb/awesome_explorers.md
Design of address page

Strengths of awesome Bitcoin blockchain explorers

cyber•Fund

  • superability to get aggregation of addresses into accounts
  • superability to get current valuation in unit of account and unit of value
  • superability to get structure of value

OXT

  • superability to draw charts: awesome history of account by volumes, transactions, temporal patterns
  • stats: first seen, last seen