Skip to content

Instantly share code, notes, and snippets.

View Dave-Lindberg's full-sized avatar

Dave-Lindberg

View GitHub Profile
@Dave-Lindberg
Dave-Lindberg / Main.hs
Created June 10, 2022 04:32
week-4_double-donation-haskell
{-# LANGUAGE OverloadedStrings #-}
module Example where
import Language.Marlowe.Extended
main :: IO ()
main = printJSON $ contract "giver1" "giver2" "receiver" "amount" "deadline"
{- Define a contract, Close is the simplest contract which just ends the contract straight away
@Dave-Lindberg
Dave-Lindberg / metadata.json
Last active June 9, 2022 22:08
week-3_double-donation
{"valueParameterInfo":[["donation",{"valueParameterFormat":{"contents":null,"tag":"DefaultFormat"},"valueParameterDescription":"In Lovelace"}]],"timeParameterDescriptions":[["initial-deadline",""],["donation1-deadline",""],["donation2-deadline",""]],"roleDescriptions":[["Giver1","Donor #1"],["Giver2","Donor #2"],["Receiver","Recipient of all donations"]],"contractType":"Other","contractShortDescription":"Two donors give funds to a recipient","contractName":"Double Donation, Week 3","contractLongDescription":"Two donors give funds to a recipient","choiceInfo":[["initial-donor",{"choiceFormat":{"contents":null,"tag":"DefaultFormat"},"choiceDescription":"input \"1\" for Giver1, \"2\" for Giver2"}]]}
/*
* File: iframeResizer.js
* Desc: Force iframes to size to content.
* Requires: iframeResizer.contentWindow.js to be loaded into the target frame.
* Doc: https://github.com/davidjbradshaw/iframe-resizer
* Author: David J. Bradshaw - dave@bradshaw.net
* Contributor: Jure Mav - jure.mav@gmail.com
* Contributor: Reed Dadoune - reed@dadoune.com
*/
setTimeout(
@Dave-Lindberg
Dave-Lindberg / ddplugin.css
Created November 12, 2018 00:16
revised double the donation plugin CSS for Resurge International
@font-face{font-family:'LatoLatin-Regular';text-rendering:optimizeLegibility;src:url("https://doublethedonation.com/fonts/subset/LatoLatin-Regular-subset.woff2") format("woff2"),url("https://doublethedonation.com/fonts/subset/LatoLatin-Regular-subset.zopfli.woff") format("woff"),url("https://doublethedonation.com/fonts/subset/LatoLatin-Regular-subset.ttf") format("truetype");unicode-range:U+20-7E}@font-face{font-family:'LatoLatin-Bold';text-rendering:optimizeLegibility;src:url("https://doublethedonation.com/fonts/subset/LatoLatin-Bold-subset.woff2") format("woff2"),url("https://doublethedonation.com/fonts/subset/LatoLatin-Bold-subset.zopfli.woff") format("woff"),url("https://doublethedonation.com/fonts/subset/LatoLatin-Bold-subset.ttf") format("truetype");unicode-range:U+20-7E}@font-face{font-family:'dtd';src:url("data:application/octet-stream;base64,d09GRgABAAAAAA8kAA8AAAAAGIwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABWAAAADsAAABUIIslek9TLzIAAAGUAAAAQwAAAFY+IFH6Y21hcAAAAdgAAAByAAABzOMelmJjdnQgAAACTAAAABMAAAAgB