Skip to content

Instantly share code, notes, and snippets.

@jcbetancourt
jcbetancourt / smart_contract.sol
Created December 27, 2020 09:35 — forked from jcmartinezdev/smart_contract.sol
Access a Smart Contract from your web application
pragma solidity ^0.6.6;
contract CoolNumberContract {
uint public coolNumber = 10;
function setCoolNumber(uint _coolNumber) public {
coolNumber = _coolNumber;
}
}
@jcbetancourt
jcbetancourt / erc20-token-sample.sol
Created December 26, 2020 11:33 — forked from jcmartinezdev/erc20-token-sample.sol
Necessary code to generate an ERC20 Token
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol : LCST
// Name : LCS Token
// Total supply : 100000
// Decimals : 2
// Owner Account : 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe
@jcbetancourt
jcbetancourt / DialogflowStream.js
Created November 2, 2020 16:05 — forked from dalequark/DialogflowStream.js
Create a continuous back-and-forth stream with dialogflow from mic
/**
* Copyright 2020 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software