Skip to content

Instantly share code, notes, and snippets.

Avatar
🎀

Florian Castelain floriancastelain

🎀
View GitHub Profile
@floriancastelain
floriancastelain / cookie-typescript-utils.ts
Last active Oct 6, 2020 — forked from joduplessis/cookie-typescript-utils.ts
Setting, deleting and retrieving cookies in Typescript.
View cookie-typescript-utils.ts
View WordCountMapper.java
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;
View WordCountReducer.java
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;
View WordCountDriver.java
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;
View gist:49e2f11d3a56bb6c6716d58ffae8b190
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
View fabric-client-errror-0
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
View gist:d55f297d4d2f81a5e757e1e6968822af
https://www.fool.com/investing/2018/04/25/explaining-blockchain-in-1-easy-to-understand-sent.aspx
View com between contracts
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;
}