Skip to content

Instantly share code, notes, and snippets.

View nunofernandes-plight's full-sized avatar

Nuno Edgar Nunes Fernandes nunofernandes-plight

View GitHub Profile
@nunofernandes-plight
nunofernandes-plight / .deps...npm...@chainlink...contracts-ccip...src...v0.8...ccip...applications...CCIPReceiver.sol
Created January 31, 2024 18:10
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=0.8.19&optimize=false&runs=200&gist=
@nunofernandes-plight
nunofernandes-plight / Runners.sol
Last active January 18, 2024 19:09
Runners Smart Contract Solidity Code
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
// Deploy this contract on Fuji
import "@openzeppelin/contracts@4.6.0/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts@4.6.0/utils/Counters.sol";
import "@openzeppelin/contracts@4.6.0/utils/Base64.sol";
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
@nunofernandes-plight
nunofernandes-plight / pbt.ipynb
Last active January 13, 2020 11:43 — forked from NicolaBernini/pbt.ipynb
Property Based Testing in C++ with RapidCheck
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nunofernandes-plight
nunofernandes-plight / Simple Storage by Nuno
Created December 19, 2019 15:26
Simple Blockchain Storage
pragma solidity ^0.5.12;
contract SimpleStorageNuno {
string public text;
function set(string memory _text) public {
text = _text;
}
function get () public view returns (string memory) {
pragma solidity ^0.5.12;
contract first_smart {
string public fsc = "first smart contract";
}
@nunofernandes-plight
nunofernandes-plight / svd.py
Created February 20, 2018 14:34 — forked from addisonhuddy/svd.py
Singular Value Decomposition Example with Numpy
# Singular Value Decomposition Example
import numpy as np
# example taken from Video Tutorials - All in One
# https://www.youtube.com/watch?v=P5mlg91as1c
a = np.array([[1, 1, 1, 0, 0],
[3, 3, 3, 0, 0],
[4, 4, 4, 0, 0],
[5, 5, 5, 0, 0],
@nunofernandes-plight
nunofernandes-plight / Q-Table Learning-Clean.ipynb
Created February 8, 2018 10:42 — forked from awjuliani/Q-Table Learning-Clean.ipynb
Q-Table learning in OpenAI grid world.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nunofernandes-plight
nunofernandes-plight / SimplePolicy.ipynb
Created February 7, 2018 13:26 — forked from awjuliani/SimplePolicy.ipynb
Policy gradient method for solving n-armed bandit problems.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.