Description | Entity | Preview |
---|---|---|
A With Acute, Latin Capital Letter | Á | Á |
A With Acute, Latin Small Letter | á | á |
A With Breve, Latin Small Letter | ă | ă |
A With Caron, Latin Small Letter | ǎ | ǎ |
A With Circumflex, Latin Capital Letter | Â | Â |
A With Circumflex, Latin Small Letter | â | â |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> Node = function(){}; | |
[Function] | |
> Node.pro | |
Node.propertyIsEnumerable | |
Node.prototype | |
> Node.prototype.foo = {bar: 'hello world'}; | |
{ bar: 'hello world' } | |
> node = new Node(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo { | |
constructor(foo) { | |
this.foo = foo | |
} | |
async execUntilStop(callback) { | |
const timeoutLoopCallback = () => { | |
if (this.stopExec) return; | |
callback({ data: 'data' }); | |
setTimeout(timeoutLoopCallback, 10); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const wait = callback => new Promise((resolve, reject) => { | |
const end = () => { | |
try { | |
if (callback()) { | |
resolve(true); | |
} else { | |
setImmediate(end); | |
} | |
} catch (error) { | |
reject(error); |
Followed tutorial here: https://github.com/golang/go/wiki/WebAssembly
- install compatible version of golang. Test with go1.12.8
- get cue:
go get -u cuelang.org/go/cue
NOTE: this installs the packages files, not the cmd - get the wasm exec_file
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cue eval ttest.cue | |
FooBar: string | |
test: { | |
subject: _ | |
describe: { | |
"One big definition": { | |
subject: string | |
it: { | |
"should work for invalid": { | |
assert: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module Swap where | |
import Language.Marlowe | |
main :: IO () | |
main = print . pretty $ contract | |
{- Simply swap two payments between parties -} | |
contract :: Contract |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module Swap where | |
import Language.Marlowe | |
main :: IO () | |
main = print . pretty $ contract | |
{- Simply swap two payments between parties -} | |
contract :: Contract |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://beacon.exergy.dev/?swarmKey=%2Fkey%2Fswarm%2Fpsk%2F1.0.0%2F%0A%2Fbase16%2F%0A69802e05a4ce11ade9f0fe3d55595b24a9d03ad6522848478ebf52f479cfbbb7&bootstrapNode=%2Fdns4%2Fbootstrap-node.jx-staging.xrg.pw%2Ftcp%2F443%2Fwss%2Fipfs%2FQmdnmJmwKSGLDYp494ApKM2DYfrU7BuPVKPCqzKoWRFbDd |