Skip to content

Instantly share code, notes, and snippets.

View EdsonAlcala's full-sized avatar

Edson Alcalá EdsonAlcala

View GitHub Profile
pragma solidity ^0.5.3;
contract SimpleStorage {
function getValue() public pure returns(uint256){
uint256 value = 1000;
return value;
}
}
{
"failed": false,
"gas": 114967,
"returnValue": "6080604052348015600f57600080fd5b506004361060325760003560e01c80631865c57d146037578063c19d93fb14604f575b600080fd5b603d6055565b60408051918252519081900360200190f35b603d605b565b60005490565b6000548156fea265627a7a723058209fa44d2c74885e60715e4d845d6f360f80cbef23b84d3804408903f946b90bbf64736f6c634300050a0032",
"structLogs": [
{
"depth": 1,
"gas": 50087,
"gasCost": 3,
"memory": [],
[
{
"_id": "5bfaf0eef07982278d00b57e",
"language": "en",
"preSurvey": [
{
"answers": [
{
"_id": "5bfaf0eef07982278d00b582",
"answerId": "5bf8575d537b180079deca30",
# if you're doing anything beyond your local machine, please pin this to a specific version at https://hub.docker.com/_/node/
FROM node:8 as builder
RUN mkdir -p /opt/app
# set our node environment, either development or production
# defaults to production, compose overrides this to development on build and run
ARG NODE_ENV=production
ENV NODE_ENV $NODE_ENV
@EdsonAlcala
EdsonAlcala / redux-actions.ts
Created May 20, 2018 20:42 — forked from milankorsos/redux-actions.ts
Correct TypeScript typing example for Redux Thunk actions
import {Action, ActionCreator, Dispatch} from 'redux';
import {ThunkAction} from 'redux-thunk';
// Redux action
const reduxAction: ActionCreator<Action> = (text: string) => {
return {
type: SET_TEXT,
text
};
};
{
"kind": "youtube#searchListResponse",
"etag": "\"DuHzAJ-eQIiCIp7p4ldoVcVAOeY/vWzIsrwMDACFroB6cxG_WasELAI\"",
"nextPageToken": "CAoQAA",
"regionCode": "GB",
"pageInfo": {
"totalResults": 1000000,
"resultsPerPage": 10
},
"items": [
import * as React from 'react';
interface Props {
name?: string;
}
const Header: React.SFC<Props> = (props: Props) => (
<h1>
Hello, {props.name}! Welcome to React and TypeScript.
</h1>
import network
from network import LoRa
import binascii
# Initialize LoRa in LORAWAN mode.
lora = LoRa(mode=LoRa.LORAWAN)
# Display our device address
print(binascii.hexlify(lora.mac()).upper().decode('utf-8'))
import React from 'react';
import { Button } from 'semantic-ui-react';
import { Connect, SimpleSigner } from 'uport-connect'
const MNID = require('mnid');
class Login extends React.Component {
loginClicked = () => {
console.log("Event clicked");
import React from 'react';
import { Button } from 'semantic-ui-react';
class Login extends React.Component {
loginClicked = ()=>{
console.log("Event clicked");
}
render() {