Skip to content

Instantly share code, notes, and snippets.

adibas03 / gist:fc3aa2ed612e574da7f812344ac7f596
Last active Oct 14, 2019
React native setup errors trouble shooting
View gist:fc3aa2ed612e574da7f812344ac7f596
Ensure gradle version matches Java version
openjdk 11 & above: Gradle 5 & above
update distributionUrl in repo/android/gradle/wrapper/ to:
Unable to successfully start react-native server
Could not determine java version from 'x.x.x'
Compare java versions between react-nativer `start` and `run-android`
adibas03 /
Created Jun 20, 2018 — forked from mikaelhg/
Workaround for the trustAnchors parameter must be non-empty
# Ubuntu 18.04 and various Docker images such as openjdk:9-jdk throw exceptions when
# Java applications use SSL and HTTPS, because Java 9 changed a file format, if you
# create that file from scratch, like Debian / Ubuntu do.
# Before applying, run your application with the Java command line parameter
# java ...
# to verify that this workaround is relevant to your particular issue.
# The parameter by itself can be used as a workaround, as well.
adibas03 /
Last active Jan 3, 2018 — forked from cobyism/
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

adibas03 / Hello.sol
Last active Aug 15, 2017
Blochain_crytocurrrency_confrerence_2017 Training
View Hello.sol
pragma solidity^0.4.11;
contract Hello{
event say_hello(string);
function Hello(){}
function world() constant returns(string){
return "world";
adibas03 / Helloworld.sol
Created Mar 27, 2017
Welcome to solidity
View Helloworld.sol
pragma solidity ^ 0.4.9;
contract Helloworld{
uint public hey;
function Helloworld(){
function getWorld() returns(bytes32 hello){
adibas03 / whisper.js
Last active Feb 28, 2017 — forked from achiko/whisper.js
whisper sample
View whisper.js
console.log('shh clien ....');
var Web3 = require('Web3');
if(typeof web3 !== 'undefined')
web3 = new Web3(web3.currentProvider);
//web3 = new Web3(new Web3.providers.HttpProvider(""));
web3 = new Web3(new Web3.providers.HttpProvider(""));
View ubuntu14.04-command-line-install-android-sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
View .atom\packages\atom-ethereum-interface\lib\
AtomSolidityView = require './ethereum-interface-view'
{CompositeDisposable} = require 'atom'
Web3 = require 'web3'
React = require 'react'
ReactDOM = require 'react-dom'
TestRPC = require "ethereumjs-testrpc";
catch a
adibas03 / SuperdaoActionDb
Created Apr 15, 2016 — forked from anonymous/SuperdaoActionDb
Created using soleditor: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at
View SuperdaoActionDb
import "SuperdaoActions";
contract SuperdaoActionDb is SuperdaoActionManagerEnabled {
// This is where we keep all the actions.
mapping (bytes32 => address) public Superdaoactions;
//ensure call is from action manager
modifier verifyAm(){