Skip to content

Instantly share code, notes, and snippets.

View roughpandaz's full-sized avatar
💭
Decentralizing the world one step at a time

Rongxin roughpandaz

💭
Decentralizing the world one step at a time
View GitHub Profile
{
"version": 1,
"inputs": [
{
"prev_tx_hash": "abcd1234... (previous transaction hash)",
"output_index": 0,
"scriptSig": "483045022100... (signature and public key)",
"sequence": 4294967295
}
],
@roughpandaz
roughpandaz / git-pushing-multiple.rst
Created September 2, 2022 18:18 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@roughpandaz
roughpandaz / .py
Created September 24, 2018 02:21
Enigma Machine
'''
NOTE: Code is run in part1_test.py
'''
from copy import deepcopy
@roughpandaz
roughpandaz / cryptokitties.sol
Created August 8, 2018 23:08 — forked from arpit/cryptokitties.sol
Cryptokitties Contract from the Eth blockchain
pragma solidity ^0.4.11;
/**
* @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 {
address public owner;
Verifying my Blockstack ID is secured with the address 18xQ8xPX4QCUZGG1ykVBnAhiytoyYDs1bz https://explorer.blockstack.org/address/18xQ8xPX4QCUZGG1ykVBnAhiytoyYDs1bz