start new:
tmux
start new with session name:
tmux new -s myname
| {-# LANGUAGE OverloadedStrings #-} | |
| module Example where | |
| import Language.Marlowe.Extended | |
| -- Simulates an auto loan for a used car with compound interest. Native token represents title for the car. | |
| -- Input loan amount. We imagine the car costs 5000 ADA | |
| loan_amount_in_ADA = 5000 :: Double |
| {-# LANGUAGE OverloadedStrings #-} | |
| module Example where | |
| import Language.Marlowe.Extended | |
| main :: IO () | |
| main = printJSON $ contract "Bank" "Client" 5 50 (TimeParam "BankDeadline") (TimeParam "ClientDeadlines") | |
| {- Define a contract where the Bank makes an initial deposit and the Client makes a series of deposits of |
| {-# LANGUAGE OverloadedStrings #-} | |
| module Example where | |
| import Language.Marlowe.Extended | |
| np = 3 :: Integer -- Number of payments (positive integer) | |
| am = 50 :: Integer -- Amount (in Ada) of each deposit by Client (positive integer) | |
| main :: IO () | |
| main = printJSON $ contract np am (TimeParam "Bank Deadline") (TimeParam "Client Deadline") |
| {"valueParameterInfo":[["Bank Deposit",{"valueParameterFormat":{"contents":[6,""],"tag":"DecimalFormat"},"valueParameterDescription":""}],["Client Deposit",{"valueParameterFormat":{"contents":[6,""],"tag":"DecimalFormat"},"valueParameterDescription":""}]],"timeParameterDescriptions":[["Bank Deposit Timeout",""],["Client Deposit Timeout 1",""]],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]} |
| /** | |
| * Remove all specified keys from an object, no matter how deep they are. | |
| * The removal is done in place, so run it on a copy if you don't want to modify the original object. | |
| * This function has no limit so circular objects will probably crash the browser | |
| * | |
| * @param obj The object from where you want to remove the keys | |
| * @param keys An array of property names (strings) to remove | |
| */ | |
| function removeKeys(obj, keys){ | |
| var index; |
| // Generate class helpers for size properties such as margin, padding, font-size | |
| // Usage : | |
| // @include marginer(5, 60, 5) | |
| // .mt5 will then add margin-top:5px to the element, | |
| // and so on for each side, from 5px to 60px with a 5px step. | |
| @mixin marginer($min, $max, $step) { | |
| .mt#{$min} {margin-top: $min*1px} | |
| .mb#{$min} {margin-bottom: $min*1px} | |
| .ml#{$min} {margin-left: $min*1px} |
| image: node:6.11.2 | |
| pipelines: | |
| custom: # Pipelines that are triggered manually | |
| deployment-to-production-init: | |
| - step: | |
| caches: | |
| - node | |
| script: # Modify the commands below to build your repository. | |
| - npm install -g gulp |