Skip to content

Instantly share code, notes, and snippets.

View Andromelus's full-sized avatar

user Andromelus

View GitHub Profile
@Andromelus
Andromelus / cookie-typescript-utils.ts
Last active October 6, 2020 17:02 — forked from joduplessis/cookie-typescript-utils.ts
Setting, deleting and retrieving cookies in Typescript.
package sdz.hadoop.wordcount;
import java.io.IOException;
import java.util.Iterator;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
package sdz.hadoop.wordcount;
import java.io.IOException;
import java.util.Iterator;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
package sdz.hadoop.wordcount;
import java.io.IOException;
import java.util.Iterator;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
@Andromelus
Andromelus / gist:49e2f11d3a56bb6c6716d58ffae8b190
Created June 18, 2019 08:54
wearetheledger/fabric-mock-stub error
florian@florian-VirtualBox:~/Bureau/blockchain-code/chaincodes/test$ node test.js
2019-06-18T08:47:31.016Z ERROR [lib/chaincode.js] uncaughtException: The "peer.address" program argument must be set to a legitimate value of <host>:<port>
{"date":"Tue Jun 18 2019 10:47:31 GMT+0200 (CEST)","process":{"pid":7006,"uid":1000,"gid":1000,"cwd":"/home/florian/Bureau/blockchain-code/chaincodes/test","execPath":"/home/florian/.nvm/versions/node/v8.15.0/bin/node","version":"v8.15.0","argv":["/home/florian/.nvm/versions/node/v8.15.0/bin/node","/home/florian/Bureau/blockchain-code/chaincodes/test/test.js"],"memoryUsage":{"rss":50659328,"heapTotal":23494656,"heapUsed":16076088,"external":99615}},"os":{"loadavg":[0.18408203125,0.45166015625,0.57373046875],"uptime":2712},"trace":[{"column":9,"file":"/home/florian/Bureau/blockchain-code/chaincodes/public-channel/identity-manager/node_modules/fabric-shim/lib/chaincode.js","function":"parsePeerUrl","line":344,"method":null,"native":false},{"column":13,"file":"/home/florian/B
2019-06-06T07:40:45.798Z - debug: [NetworkConfig101.js]: getOrganization - name org1
2019-06-06T07:40:45.798Z - debug: [Organization.js]: Organization.const
2019-06-06T07:40:45.799Z - debug: [NetworkConfig101.js]: getCertificateAuthority - name org1-ca
2019-06-06T07:40:45.799Z - debug: [CertificateAuthority.js]: CertificateAuthority.const
2019-06-06T07:40:45.800Z - debug: [NetworkConfig101.js]: getOrganization - name org1
2019-06-06T07:40:45.800Z - debug: [Organization.js]: Organization.const
2019-06-06T07:40:45.801Z - debug: [NetworkConfig101.js]: getCertificateAuthority - name org1-ca
2019-06-06T07:40:45.802Z - debug: [CertificateAuthority.js]: CertificateAuthority.const
2019-06-06T07:40:45.803Z - debug: [Gateway]: connect - setting identity
2019-06-06T07:40:45.805Z - debug: [BaseWallet]: in setUserContext, label = admin
https://www.fool.com/investing/2018/04/25/explaining-blockchain-in-1-easy-to-understand-sent.aspx
pragma solidity ^0.4.22;
// Florian CASTELAIN <castelainflorian44@gmail.com> 10/02/2018
// Only signatures of the already deployed contract
// The equivalent of the ABI when using web3
// This is an abstract contract used to generate the needed ABI. The EVM does it itself
// --- WE REQUIRE THIS ONLY IF WE WANT TO INCLUDE PRECALCULATED ABI ---
contract target {
function setValue(string v) public;
}
0xae8188b0d68b974e8d16d5e1e136ca90517fc35c
0x0f3cf2e880b5dd44ad44572ba5db623eca7c1b0a