-
npm run bundle
on the ReactVR project. It creates a new folder invr/build
. The exported files should be self-sufficient when uploaded to a web server. -
Copy static_assets folder
into thevr/build
directory. (Heroku errors on this, which is why it needs thestatic_asset
filenames in the index.html file). We may be able to resolve this by using a remote CDN to host thestatic_assets
, and passing in theassetRoot
argument toReactVR.init
. See the ReactVR deployment instructions here.
This is an annotated version of Blockchain.info's Websocket API with explanations of message contents.
Bitcoin transactions (especially if large) may have multiple inputs and outputs in a single transaction. http://chimera.labs.oreilly.com/books/1234000001802/ch02.html
explains this very concisely.
The JSON object below is the actual message received from the Blockchain.info Websockets API for the transaction 0857b9de1884eec314ecf67c040a2657b8e083e1f95e31d0b5ba3d328841fc7f
. You can see the Blockchain.info transaction page for this transaction here.
Transaction Page:
- Read Facebook's React VR deployment guide.
- Copy the list of static assets files in
reactvrinit.js
. (TODO: write automated script to handle this)
ReactVR.init(
// When you're ready to deploy your app, update this line to point to
// your compiled index.bundle.js
'./index.bundle.js?platform=vr',
049d770fc7924b6b3a23da1a17a6e3fa970e12a6611d719c81bb5460ba5319963697a4886e81e5c527eb243b6672024470e8766cdae4eb7fade5d513b364a774d3 |
This is written for newcomers to the lab, who often experience X11 connection rejected errors when running gnome-terminal (you need this to run atom, sublime text etc to edit on a remote server).
For more info, read the full answer on StackExchange https://unix.stackexchange.com/questions/412065/ssh-connection-x11-connection-rejected-because-of-wrong-authentication
echo $DISPLAY
This should display your current X11 display
xauth list
If nothing prints on console, it means ssh did not automatically generate the X11 authorization cookies on the local display properly
Hi Sourav,
This is knowledge transfer of lessons I learnt working with Ethereum. I had to figure out a lot of this from scratch, so hopefully this saves you a lot of time.
The current geth node on andromeda is in a local environment so passwords etc will be included in this write-up (see the last page), but please change them as soon as possible for hygiene purposes.
pragma solidity ^0.5.7; | |
contract PMT { | |
using ABDKMath64x64 for uint128; | |
// rate is in basis points (0.5% = 50) | |
function pmt(int128 rate, uint256 numPayments, int128 principal) | |
public | |
returns (int128) | |
{ |
{ | |
"extends": "solhint:recommended", | |
"plugins": [], | |
"rules": { | |
"avoid-throw": false, | |
"avoid-suicide": "error", | |
"avoid-sha3": "warn" | |
} | |
} |
{ | |
"extends": ["solhint:recommended"], | |
"rules": { | |
"prettier/prettier": "error", | |
"avoid-throw": false, | |
"avoid-suicide": "error", | |
"avoid-sha3": "warn" | |
}, | |
"plugins": ["prettier"] | |
} |