Skip to content

Instantly share code, notes, and snippets.

@hhqwerty
hhqwerty / speller_haskell.txt
Last active September 16, 2021 18:21
Speller Haskell
speller ::[String] -> String
speller [] = ""
speller (x:xs) | xs==[] = "and " ++ helper x
| otherwise = (helper x) ++", " ++ speller xs
helper :: String -> String
helper word = (head word) : (" " ++ "is for " ++ word)
@hhqwerty
hhqwerty / metadata.json
Last active August 1, 2021 17:28
11111
{"valueParameterDescriptions":[["Price","Amount of Lovelace to be paid by the *Buyer* for the item."]],"slotParameterDescriptions":[["Buyer's deposit timeout","Deadline by which the *Buyer* must deposit the selling *Price* in the contract."],["Buyer's dispute timeout","Deadline by which, if the *Buyer* has not opened a dispute, the *Seller* will be paid."],["Seller's response timeout","Deadline by which, if the *Seller* has not responded to the dispute, the *Buyer* will be refunded."],["Timeout for arbitrage","Deadline by which, if the *Arbiter* has not resolved the dispute, the *Buyer* will be refunded."]],"roleDescriptions":[["Arbiter","The party that will choose who gets the money in the event of a disagreement between the *Buyer* and the *Seller* about the outcome."],["Buyer","The party that wants to buy the item. Payment is made to the *Seller* if they acknowledge receiving the item."],["Seller","The party that wants to sell the item. They receive the payment if the exchange is uneventful."]],"contractTy
@hhqwerty
hhqwerty / metadata.json
Created July 27, 2021 19:55
New Project
{"valueParameterDescriptions":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"O","contractName":"","contractDescription":"","choiceDescriptions":[]}
@hhqwerty
hhqwerty / Fastfile
Last active March 8, 2021 16:55
fastlane
=begin
- create Fastfile at <root>/fastlane/
- to run lane android dev:
1: create keystore and put it on <root> and <root>/android/app
2: run script on terminal :
bundle exec fastlane android dev
app_keystore:<keystore>
app_keyalias:<keyalias>
app_keystore_password:<app_keystore_password>