Skip to content

Instantly share code, notes, and snippets.

View Swader's full-sized avatar
🏠
Buidling

Bruno Škvorc Swader

🏠
Buidling
View GitHub Profile
5CvcK8o745NwUeLCmEoP4WpDPpB6eKduxR7fV3GtTJCvWysj
5Gdj9n5idJwTjJY5f2QWmrfu5yS57SGGEJt5rsw9UoLuRbYo
5CqULFyV8rgpy3bd3yJGfyFoPrn2EP46vnn86ey4FP5j4nih
5ED1tYzMYqN5pUFeQLNHUKqw9h7t6vrMzdPhiGxjPL4HMHqn
5EgtXK8zsxUu47Zg1ASZF7KzNtWowk6Grp9qEFeVC6C5vgDU
5CZnrJuy9iEYpcSUucTGzzmWvPj9hEicgBxXF3RFTooRXBRa
5HpRcaD8q95mejgSUsyaqbQeczYZcpbLzSvDZYBHj7ZFvtfJ
5Gs3Vmbsr2xaBLCKwTqvUfT511u14QB9jqks2WEsQyWvNvLC
5GbrTYbpLNanZ9c3TjkAURAT91VchpTtE82Vy2mgiex8gqTt
5C89Z5bkp3nAjEcnFFsYxW7b5rj3X3PK38p46zNPYSyWXtQT
use frame_support::{decl_module, decl_storage, decl_event, decl_error, ensure};
use sp_std::vec::Vec;
use system::ensure_signed;
pub trait Trait: system::Trait {
type Event: From<Event<Self>> + Into<<Self as system::Trait>::Event>;
}
decl_event! {
pub enum Event<T> where AccountId = <T as system::Trait>::AccountId {
@Swader
Swader / login.php
Created February 24, 2020 10:44
snippets
</form>
<!-- -------↓↓↓↓ ADD THIS ↓↓↓↓------ -->
<div style="margin-top:10px"><button type="submit" class="btn btn-primary" id="web3login">Log in with Web3</button></div>
<div>
<select name="web3account" id="web3accounts" style="display:none"></select>
<button type="submit" class="btn btn-primary" id="web3loginConfirm" style="display:none">Confirm login</button>
@Swader
Swader / id_rsa.pub
Created August 5, 2019 22:40
Pubkey
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCb0AVAqC1Bouz25uJVBPAeOqnUlZXid10V3RuQWw3oFLyNDu2JjQ9032IiHcKyZf/FbqBDngCnybCSeMtqZx4dxMGxXrvzkHDW+ZcsdY3k8bLy4RZaKKNgINrBHASsjrn22Oqya5GlkK9/NdcaCxWjmMoy9gbdBAnDD4fYukAEMw7CMKnL9DIfHNp0qykEBSPeM9g7OyZZaHmTscgoCX/nApmkZ3G3ug2XcSwpPLVF0vSLN/Ieutjl1+lUUTkrzBLxPByoG62a0Vgtkn0HRonmO85uXAMH3K46yLlHj6cW4FeIZuIsSlW82TN8S3wBD67nJfhPeM30YQP4I/HdF6H/ swader@ubruntu
@Swader
Swader / humanRewarder.sol
Created July 22, 2019 22:10
HumanRewarder
pragma solidity 0.5.1;
contract HasVoted {
mapping (address => bool) public voted;
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
@Swader
Swader / error.txt
Created May 31, 2019 15:05
Libp2p windows
[Suite] libp2p-daemon test suite
panic: qtls.ClientSessionState not compatible with tls.ClientSessionState
goroutine 1 [running]:
github.com/lucas-clemente/quic-go/internal/handshake.init.0()
C:/Users/Bruno/repos/nimbus/vendor/go/pkg/mod/github.com/lucas-clemente/quic-go@v0.11.1/internal/handshake/unsafe.go:20 +0x11a
testdaemon.nim(151) testdaemon
asyncloop.nim(827) waitFor
@Swader
Swader / verify.txt
Created May 24, 2019 20:00
xpo verify
Verify myself: e82253abe260463789f396b586d29141 http://blockchain-devs.xpo.network #
{
"linkReferences": {},
"object": "60806040526000600a60146101000a81548160ff021916908315150217905550635d4a98d8600d556000600e553480156200003957600080fd5b50600b60405180807f726976612d70616c6163652d6d6f64656c000000000000000000000000000000815250601101905060405180910390209080600181540180825580915050906001820390600052602060002001600090919290919091509060001916905550600b60405180807f766573746962756c2d706572697374696c000000000000000000000000000000815250601101905060405180910390209080600181540180825580915050906001820390600052602060002001600090919290919091509060001916905550600b60405180807f6e612d6b616e74756e7500000000000000000000000000000000000000000000815250600a01905060405180910390209080600181540180825580915050906001820390600052602060002001600090919290919091509060001916905550600b60405180807f676f6c64656e2d67617465000000000000000000000000000000000000000000815250600b01905060405180910390209080600181540180825580915050906001820390600052602060002001600090919290919091509060001916905550600b60405180807f3234706f696e74636c6f636b00000
pragma solidity 0.4.24;
// File: C:/Users/Bruno/repos/artifaqt/artifaqt/contract/contracts/eip721/EIP721Interface.sol
/// @title ERC-721 Non-Fungible Token Standard
/// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
/// Note: the ERC-165 identifier for this interface is 0x6466353c
interface EIP721Interface {
/// @dev This emits when ownership of any NFT changes by any mechanism.
@Swader
Swader / lokacija1.json
Last active April 19, 2019 11:40
Bločk lokacije
{
"title": "The Battle Axe",
"description": "The Zrinskis were a proud noble family that once ruled over Čakovec and helped shape the course of not only the town's history, but also the history of entire Europe. Nikola Šubić Zrinski was a particularly famous Zrinski, famous enough to be become the main character of Ivan von Zajc's internationally acclaimed opera and the star of many Croatian and Hungarian folk songs: he and his army fought to defend the Hungarian fortress of Sziget against a full-scale invasion of Ottoman forces led by the mighty Suleiman the Great. Although Sziget fell and Nikola perished in the battle, the Ottoman armies suffered such losses that they decided to retreat and abort their march towards Vienna. As you might have already noticed, the Zrinski family is nowadays a staple of Čakovec. Statues, symbols, and even graffiti that depict the members of the Zrinski family can be seen all over town. To find The Battle Axe token, you must look for the aforementioned historical hero in an