I hereby claim:
- I am carloslfu on github.
- I am carloslfu (https://keybase.io/carloslfu) on keybase.
- I have a public key whose fingerprint is 3662 9804 D90A 636A B7FD 9754 11DB ECC1 FFB7 8186
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| function CPromise (fn) { | |
| let obj = {} | |
| let p = new Promise((resolve, reject) => { | |
| fn(resolve, reject, obj) | |
| obj.reject = reject | |
| }) | |
| p.cancel = () => { | |
| if (obj.oncancel) { | |
| obj.oncancel() | |
| } |
| function CPromise (fn) { | |
| let obj = {} | |
| let p = new Promise((resolve, reject) => { | |
| fn(resolve, reject, obj) | |
| obj.reject = reject | |
| }) | |
| p.cancel = () => { | |
| if (obj.oncancel) { | |
| obj.oncancel() | |
| } |
| const crypto = require('crypto') | |
| const Swarm = require('discovery-swarm') | |
| const defaults = require('dat-swarm-defaults') | |
| const getPort = require('get-port') | |
| const readline = require('readline') | |
| /** | |
| * Here we will save our TCP peer connections | |
| * using the peer id as key: { peer_id: TCP_Connection } | |
| */ |
| import { Resolver, NpmHttpRegistry } from '@stackblitz/turbo-resolver'; | |
| function resolve(dependencies){ | |
| const resolver = new Resolver(); | |
| return resolver.resolve(dependencies); | |
| } | |
| resolve({ | |
| "rxjs": "https://github.com/reactivex/rxjs", // Master branch of Rx.js repo | |
| "left-pad": "*", |
Working code: https://codesandbox.io/s/ancient-snowflake-b8keo
| {"gvlSpecificationVersion":2,"vendorListVersion":25,"tcfPolicyVersion":2,"lastUpdated":"2020-02-13T16:05:22Z","purposes":{"1":{"id":1,"name":"Store and/or access information on a device","description":"Cookies, device identifiers, or other information can be stored or accessed on your device for the purposes presented to you.","descriptionLegal":"Vendors can:\n* Store and access information on the device such as cookies and device identifiers presented to a user."},"2":{"id":2,"name":"Select basic ads","description":"Ads can be shown to you based on the content you\u2019re viewing, the app you\u2019re using, your approximate location, or your device type.","descriptionLegal":"To do basic ad selection vendors can:\n* Use real-time information about the context in which the ad will be shown, to show the ad, including information about the content and the device, such as: device type and capabilities, user agent, URL, IP address\n* Use a user\u2019s non-precise geolocation data\n* Control the frequency of ads sh |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |