Skip to content

Instantly share code, notes, and snippets.

Roman Mandeleil romanman

Block or report user

Report or block romanman

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
View frontier.json
{
"nonce": "0x00006d6f7264656e",
"difficulty": "0x020000",
"mixhash": "0x00000000000000000000000000000000000000647572616c65787365646c6578",
"coinbase": "0x0000000000000000000000000000000000000000",
"timestamp": "0x00",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x",
"gasLimit": "0x2FEFD8",
"alloc": {
View ContractSample.java
StandaloneBlockchain bc = new StandaloneBlockchain();
SolidityContract contract =
bc.submitNewContract(
"contract A { uint a; ... }"
);
contract.callFunction("funcName", "arg1",
2, new byte[] {1,2,3}, "arg4");
View gist:ab27a4a0d879ded73aa3
git clone https://github.com/ethereum/ethereumj
cd ethereumj
gradlew build
View gist:0bd6df410689af1a86b4
git clone https://github.com/ethereum/ethereumj
cd ethereumj
gradlew run [-PmainClass=<sample class>]
View gist:55964ce71acdd9b51d8c
repositories {
maven {
url "http://dl.bintray.com/ethereum/maven"
}
}
compile ("org.ethereum:ethereumj-core:1.2.0-RELEASE")
View gist:5f20d68d294ec1d049b5
<repositories>
<repository>
<id>oss.jfrog.org</id>
<name>Repository from Bintray</name>
<url>http://dl.bintray.com/ethereum/maven</url>
</repository>
</repositories>
<dependency>
View snippet-2.gradle
repositories {
maven {
url "http://dl.bintray.com/ethereum/maven"
}
}
compile ("org.ethereum:ethereumj-core:1.0.0-RC1")
View snippet-1.pom
<repositories>
<repository>
<id>oss.jfrog.org</id>
<name>Repository from Bintray</name>
<url>http://dl.bintray.com/ethereum/maven</url>
</repository>
</repositories>
<dependency>
View blog-gist-1.java
public class Factorial
{
public static void main(String[] args)
{ final int NUM_FACTS = 100;
for(int i = 0; i < NUM_FACTS; i++)
System.out.println( i + "! is " + factorial(i));
}
public static int factorial(int n)
{ int result = 1;
View ethergit-seed
[8efbc0bd822c0407b2341d5a966e19fc1471c811a467e3431e4dcb597b73c408], [f86e808609184e72a0008201f4940c979a4978b72f3d32516cf5c98d2f1145758db4891b0d04202f47ec0000801ba095af6787ef393c3b1b36badb65f51a0592abfcda9f6d6bab1a8bd67923a32292a052b00cc67397723e668ccd94ef858f3a0d0be135698468041cd0fb7ae1d53e3a]
[ef2188fbe91f8ced97db6d98dbfe76e4ccfa1c6fd83300f1fb545cbb3444a8d5], [f86e018609184e72a0008201f4942a771b44282d515b8067c25eaaf588c9e4c7d8fd890eb0e1682e32dc0000801ca036fb9122d81261931233e970ca033aee67bb97a01208af49ab6c230a138e8919a004c529772996dee84f4b976c8059c78fa0d32bb7afc593cb379f7f7dbb868c87]
[3a03f3d33072c114e950f91019c11cf95343f4210f5bb2dc47d8804b5be086fc], [f86e028609184e72a0008201f4945393c4e20293f941c17afe17223ed1e001260597890929589c9981040000801ca0739b99193fb5b905d1e2b2120cfabeafc439d98df915fe085ae66e6d568ce4cca0f8aac8493764fb48279a50d338162426ed8e3e9f2febff3b7060d0e638221a12]
[95ae99c1f83719c20a8140e085416e12a87624df7c951cbb784f85c096b4ee7f], [f916bd038609184e72a000830186a08080b916696103e85a1215610014576000602052
You can’t perform that action at this time.