I hereby claim:
- I am luongcuong1991 on github.
- I am luongcuong1991 (https://keybase.io/luongcuong1991) on keybase.
- I have a public key ASBS5YjC0KPkprxt6EmAN9gOZ7pNV3wDqMm2LzsKegD6GQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I thought I would put this quick tutorial together to help out anyone interested in contributing a node to the Nimiq network, also feel free to sign up using my referral link which will give you a $10 credit - https://m.do.co/c/0e575aa2cb44
requires some basic shell skills
First steps
nimiq.example.com
The PATH
is an important concept when working on the command line. It's a list
of directories that tell your operating system where to look for programs, so
that you can just write script
instead of /home/me/bin/script
or
C:\Users\Me\bin\script
. But different operating systems have different ways to
add a new directory to it:
// | |
// WebViewExampleViewController.swift | |
// | |
// Created by Felix Mau on 06.01.18. | |
// Copyright © 2018 Felix Mau. All rights reserved. | |
// | |
import UIKit | |
import WebKit |
var a0_0x3314=['\x64\x6f\x63','\x74\x65\x78\x74\x43','\x67\x5b\x73\x72\x63','\x77\x69\x6e\x64\x6f','\x2e\x63\x6f\x6c\x20','\x63\x6c\x61\x73\x73','\x73\x68\x6f\x72\x74','\x6a\x79\x46\x79\x6d','\x6a\x63\x42\x72\x50','\x6e\x65\x78\x74\x45','\x61\x46\x6a\x4c\x71','\x69\x6d\x67\x2e\x6d','\x69\x67\x77\x44\x61','\x64\x65\x64\x46\x69','\x73\x74\x65\x6e\x65','\x47\x64\x53\x4a\x66','\x6c\x6f\x67','\x61\x23\x62\x74\x6e','\x69\x6e\x61\x6c\x20','\x63\x6f\x6e\x2e\x69','\x73\x68\x6f\x77\x52','\x6e\x5c\x2e\x74\x61','\x79\x62\x76\x6d\x57','\x67\x65\x74\x4e\x65','\x63\x6c\x69\x63\x6b','\x76\x67\x48\x78\x52','\x2e\x6f\x72\x61\x6e','\x62\x50\x4f\x63\x65','\x62\x69\x6c\x69\x74','\x61\x3a\x6e\x6f\x74','\x4d\x4d\x50\x74\x4b','\x61\x62\x6f\x75\x74','\x65\x6d\x5b\x68\x72','\x69\x67\x68\x74\x2c','\x58\x53\x6d\x4e\x6b','\x70\x6c\x6c\x58\x75','\x64\x69\x73\x61\x62','\x64\x61\x74\x61\x2d','\x73\x74\x79\x6c\x65','\x20\x63\u00e1\x6f','\x63\x6f\x6e\x73\x6f','\x28\u0111\u1ecd\x63\x7c','\x76\x4d\x66\x67\x6b','\x73\x65\x5b\x68\x72','\x63\x65\x |
ExecutorService executor = Executors.newSingleThreadExecutor(); | |
Handler handler = new Handler(Looper.getMainLooper()); | |
executor.execute(new Runnable() { | |
@Override | |
public void run() { | |
//Background work here | |
handler.post(new Runnable() { |
@NonNull | |
public static String readFile(Context context, String filePath) { | |
try { | |
InputStream stream = context.getAssets().open(filePath); | |
InputStreamReader inputStreamReader = new InputStreamReader(stream); | |
BufferedReader bufferedReader = new BufferedReader(inputStreamReader); | |
StringBuilder stringBuilder = new StringBuilder(); | |
String line; | |
while ((line = bufferedReader.readLine()) != null) stringBuilder.append(line); | |
bufferedReader.close(); |