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 Cloneable<T extends object> { | |
| protected readonly data: T; | |
| public static kind: string; | |
| protected constructor(data: T) { | |
| this.data = data; | |
| } | |
| static create<T extends object>(data: T) { | |
| console.log('Creating a cloneable', this.kind); |
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
| // after running this program you can run | |
| // ffmpeg -framerate 30 -i out/%06d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p out2.mp4 | |
| package main | |
| import ( | |
| "fmt" | |
| "image" | |
| "image/color" | |
| "image/jpeg" | |
| "math" |
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
| import dagCBOR from 'ipld-dag-cbor'; | |
| import IPLDResolver from 'ipld-resolver'; | |
| import BlockService from 'ipfs-block-service'; | |
| import IPFSRepo from 'ipfs-repo'; | |
| const repo = new IPFSRepo(process.env.HOME + '/.ipfs'); | |
| const ipfsBlockService = new BlockService(repo); | |
| const resolver = new IPLDResolver(ipfsBlockService); | |
| const node1 = { |
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
| 0xfc45546bB62A57EbC96536fb8B58A0beb6c6cD44 |
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
| 0x775fC81CBa62045E37987074B5C5675D42357ec0 |
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
| /* @flow */ | |
| type IdentityFunc = <A>(a: A) => A; | |
| declare var identity: IdentityFunc; | |
| const aNumber:number = identity(1); | |
| const aString:string = identity("foo"); |
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
| /* @flow */ | |
| type IdentityFunc<A> = (a: A) => A; | |
| declare var identity: IdentityFunc<mixed>; | |
| const aNumber:number = identity(1); | |
| const aString:string = identity("foo"); |
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
| /* @flow */ | |
| type IdentityFunc<A> = (a: A) => A; | |
| declare var identity: IdentityFunc<number>; | |
| const aNumber:number = identity(1); | |
| const aString:string = identity("foo"); |
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
| function identity(a) { | |
| return a; | |
| } |
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
| // flow-typed signature: ba132c96664f1a05288f3eb2272a3c35 | |
| // flow-typed version: c4bbd91cfc/redux_v3.x.x/flow_>=v0.33.x | |
| declare module 'redux' { | |
| /* | |
| S = State | |
| A = Action |
NewerOlder