Skip to content

Instantly share code, notes, and snippets.

View netsamir's full-sized avatar

Akasuki Nakamura netsamir

  • Element83, Ltd
  • Malta
View GitHub Profile
@netsamir
netsamir / AdventOfCode.hs
Created December 3, 2021 16:34
adventofcode.com
import qualified Data.List as L
import System.IO
------------ ------------ ------------
-- Day 1
------------ ------------ ------------
input1_test = [199, 200, 208, 210, 200, 207, 240, 269, 260, 263]
measurements :: [Integer] -> Integer
@netsamir
netsamir / blockly.xml
Created September 30, 2021 14:59
Escrow2
When
[Case
(Deposit
(Role "Seller")
(Role "Buyer")
(Token "" "")
(ConstantParam "Price")
)
Close ]
(SlotParam "Buyer's deposit timeout")
@netsamir
netsamir / blockly.xml
Last active September 30, 2021 15:11
SimpleEscrow
Pay
(Role "Son")
(Party (Role "Dady"))
(Token "" "")
(Constant 15)
Close
@netsamir
netsamir / Playground.hs
Last active September 29, 2021 10:48
Plutus Playground Smart Contract
import Playground.Contract
import qualified Language.PlutusTx as PlutusTx
import qualified Language.PlutusTx.Prelude as P
import Ledger
import Ledger.Validation
import wallet
import Plutus.Contract