Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

MD. Rizwan Raza rizwan92

🎯
Focusing
Block or report user

Report or block rizwan92

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rizwan92
rizwan92 / Live.js
Created Aug 21, 2019
React-Native-Agoria-Live.js
View Live.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component, PureComponent } from 'react';
import {
StyleSheet,
Text,
@rizwan92
rizwan92 / App.js
Created Aug 21, 2019
React-native-agora-App
View App.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
@rizwan92
rizwan92 / App.js
Last active Aug 21, 2019
React-native-openVdu-web-RTC
View App.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, { Component } from "react";
import {
View locusdata.json
15
[[45,["noop"]]]122
[[46,[{
"targetChange": {
"resumeToken": "CgkIr56e1t2B5AI=",
"readTime": "2019-08-14T06:27:43.039279Z"
}
}
]]]5800
[[47,[{
View instatiate-chain-code.js
const Client = require('fabric-client');
const myClient = require('./index.js');
var await = require('await')
const fs = require('fs');
const path = require('path');
const org1 = 'org1';
const org2 = 'org2';
const org3 = 'org3';
@rizwan92
rizwan92 / hyperledger-channel-problem.js
Last active Jan 9, 2019
hyperledger-channel-problem
View hyperledger-channel-problem.js
const fs = require('fs');
const path = require('path');
const Client = require('fabric-client');
var await = require('await')
const CHANNEL_1_PATH = './ksachdeva-exp-channel-1.tx';
const KEY_STORE_PATH_ADMIN = './keystore/admin';
const ORDERER_URL = 'grpcs://35.244.39.147:7050';
const ORDERER_TLS_CAROOT_PATH = './crypto-config/ordererOrganizations/ksachdeva-exp.com/orderers/orderer.ksachdeva-exp.com/tls/ca.crt';
View peerlogs
/opt/go/src/runtime/asm_amd64.s:2361
2018-11-10 06:57:56.466 UTC [endorser] callChaincode -> INFO 050 [mychannel][c740ecda] Entry chaincode: name:"fabcar"
2018-11-10 06:57:56.470 UTC [endorser] callChaincode -> INFO 051 [mychannel][c740ecda] Exit chaincode: name:"fabcar" (4ms)
2018-11-10 06:57:58.581 UTC [gossip/privdata] StoreBlock -> INFO 052 [mychannel] Received block [4] from buffer
2018-11-10 06:57:58.592 UTC [committer/txvalidator] Validate -> INFO 053 [mychannel] Validated block [4] in 11ms
2018-11-10 06:57:58.811 UTC [kvledger] CommitWithPvtData -> INFO 054 [mychannel] Committed block [4] with 1 transaction(s) in 217ms (state_validation=20ms block_commit=152ms state_commit=17ms)
2018-11-10 06:58:33.040 UTC [endorser] callChaincode -> INFO 055 [mychannel][2e3d784d] Entry chaincode: name:"fabcar"
2018-11-10 06:58:33.053 UTC [endorser] callChaincode -> INFO 056 [mychannel][2e3d784d] Exit chaincode: name:"fabcar" (14ms)
2018-11-10 06:58:33.054 UTC [endorser] SimulateProposal -> ERRO 057 [mychannel][2
@rizwan92
rizwan92 / webpack.config.js
Created May 28, 2018
my webpack.config.js file
View webpack.config.js
import webpack from 'webpack';
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry : './client/index.js',
output : {
path : __dirname + '/public',
filename: 'bundle.js',
chunkFilename: '[name].bundle.js',
publicPath : __dirname + '/public',
@rizwan92
rizwan92 / server.js
Created May 28, 2018
my server.js file
View server.js
import express from 'express';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import jwt from 'jsonwebtoken';
import path from 'path';
import fileUpload from 'express-fileupload';
import sassMiddleware from 'node-sass-middleware';
import React from 'react';
import { StaticRouter } from 'react-router-dom';
import ReactDomServer from 'react-dom/server';
@rizwan92
rizwan92 / package.json
Created May 28, 2018
my package.json file
View package.json
{
"name": "asc-backend",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "NODE_ENV=development nodemon --exec babel-node server/server.js --ignore public/",
"webpack": "webpack -wd ",
"build-server": "webpack --config webpack.server.js -wd",
"built": "babel server.js -d build"
You can’t perform that action at this time.