Instructions moved to https://github.com/storj/ipfs-demo.
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
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "log" | |
| "mime/multipart" | |
| "net/http" |
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
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "os" | |
| "sync" | |
| cid "github.com/ipfs/go-cid" | |
| chunker "github.com/ipfs/go-ipfs-chunker" |
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
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "storj.io/storj/lib/uplink" | |
| ) | |
| const ( |
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
| // Copyright (C) 2019 Storj Labs, Inc. | |
| // See LICENSE for copying information. | |
| package main | |
| import ( | |
| "bytes" | |
| "context" | |
| "fmt" | |
| "io/ioutil" |
I hereby claim:
- I am kaloyan-raev on github.
- I am kaloyan (https://keybase.io/kaloyan) on keybase.
- I have a public key ASBAhWjeY-QE4sNrC6yJ-FvxT8l06_uNpt6oS0ZSeMaQ_Ao
To claim this, I am signing this object:
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/sh | |
| ### BEGIN INIT INFO | |
| # Provides: che | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Eclipse Che | |
| # Description: Starts and stops Eclipse Che | |
| # |
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
| xmlDiff.overrideDifferenceListener( | |
| new IgnoreVariableAttributesDifferenceListener()); |
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
| FileReader xml1 = ... | |
| FileReader xml2 = ... | |
| Diff xmlDiff = new Diff(xml1, xml2); | |
| xmlDiff.similar(); |
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
| public class IgnoreVariableAttributesDifferenceListener implements | |
| DifferenceListener { | |
| private static final List<String> IGNORE_ATTRS = Arrays | |
| .asList(new String[] { "version", "download-size", "install-size" }); | |
| @Override | |
| public int differenceFound(Difference difference) { | |
| if (isIgnoredAttributeDifference(difference)) { | |
| return RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR; |
NewerOlder