Skip to content

Instantly share code, notes, and snippets.

View rizwan92's full-sized avatar
💭
looking for job

Rizwan Chouhan rizwan92

💭
looking for job
View GitHub Profile
@rizwan92
rizwan92 / Live.js
Created August 21, 2019 16:16
React-Native-Agoria-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 August 21, 2019 15:57
React-native-agora-App
/**
* 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 August 21, 2019 10:09
React-native-openVdu-web-RTC
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, { Component } from "react";
import {
15
[[45,["noop"]]]122
[[46,[{
"targetChange": {
"resumeToken": "CgkIr56e1t2B5AI=",
"readTime": "2019-08-14T06:27:43.039279Z"
}
}
]]]5800
[[47,[{
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 January 9, 2019 09:51
hyperledger-channel-problem
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';
@rizwan92
rizwan92 / peerlogs
Created November 10, 2018 17:44
peer logs
/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 09:10
my webpack.config.js file
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 09:09
my server.js file
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 09:07
my package.json file
{
"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"