Skip to content

Instantly share code, notes, and snippets.

View EdsonAlcala's full-sized avatar

Edson Alcalá EdsonAlcala

View GitHub Profile
#update packages
sudo apt-get update
#download compiler
sudo apt-get install build-essential
#download tcl
sudo apt-get install tcl8.5
#download latest release
#update packages
sudo apt-get update
#install git
sudo apt-get install git
#download nodejs
cd ~
wget https://nodejs.org/dist/v4.3.2/node-v4.3.2-linux-x64.tar.xz
0x925c996915c4e0797F68f466cC83aF7D4ECC38fD
0xb8f85e2ce964f864f2ccec58e47859699034660d
0x7c4a963c5d20199bda763d570fb2f640e48ebfde
0x624fedf4b9bf99ad4f61c5253031438084701103
package com.example.edson.terminatorapp;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.le.ScanSettings;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
Subscription subscription = device.establishConnection(getApplicationContext(), false)
.subscribe(
rxBleConnection -> {
Log.e("MainActivity", "rxBleConnection: " + rxBleConnection);
// All GATT operations are done through the rxBleConnection.
},
throwable -> {
// Handle an error here.
}
);
0x1c25ef6055f5584e42c29f63c5535a740e0bbbd7
@EdsonAlcala
EdsonAlcala / Microfinance.sol
Created December 12, 2017 17:05 — forked from anonymous/Microfinance.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.19+commit.c4cbbb05.js&optimize=undefined&gist=
pragma solidity ^0.4.0;
contract Microfinance {
address owner;
mapping(address => Member) members;
struct Member {
string name;