Skip to content

Instantly share code, notes, and snippets.

View maellson's full-sized avatar
🏠
Trabalhando em casa

Maelson M. Lima maellson

🏠
Trabalhando em casa
  • Prefeitura Municipal de Campina Grande
  • Campina Grande
View GitHub Profile
@maellson
maellson / GuardaLoteria.sol
Created May 29, 2020 17:16
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public{
numeroSorteado = enviado;
@maellson
maellson / GuardaLoteria.sol
Created May 29, 2020 16:52
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public{
numeroSorteado = enviado;
@maellson
maellson / GuardaLoteria.sol
Created May 21, 2020 14:27
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public{
numeroSorteado = enviado;
@maellson
maellson / GuardaLoteria.sol
Created May 20, 2020 02:01
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public{
numeroSorteado = enviado;
@maellson
maellson / GuardaLoteria.sol
Created May 20, 2020 01:50
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public{
numeroSorteado = enviado;
@maellson
maellson / GuardaLoteria.sol
Created May 19, 2020 17:26
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public{
numeroSorteado = enviado;
@maellson
maellson / GuardaLoteria.sol
Created May 19, 2020 17:24
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.2+commit.1df8f40c.js&optimize=false&gist=
pragma solidity ^0.5.2;
/**
* The contractName contract does this and that...
*/
contract HelloWorld {
string public text;//defeiniu uma string como sendo publica de acesso global
uint public number;//definiu uma variavel numerica
address public userAddress;//definiu uma variavel do tipo endereco
@maellson
maellson / GuardaLoteria.sol
Created May 18, 2020 20:20
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract GuardaLoteria {
uint numeroSorteado;
function set(uint enviado) public{
numeroSorteado = enviado;
<snippet>
<content><![CDATA[public function get${1/(.*)/\u$1/}()
{
return \$this->${1:$SELECTION};
}
public function set${1/(.*)/\u$1/}(\$$1)
{
return \$this->$1 = \$$1;
}
@maellson
maellson / geoserver.sh
Created February 24, 2018 01:53 — forked from iacovlev-pavel/geoserver-install.sh
Install GeoServer on Ubuntu 16.04
#
apt-get install openjdk-8-jre
# PostgreSQL and PostGIS
apt-get install postgresql postgresql-contrib postgis postgresql-9.5-postgis-2.2
# Create "geoserver" database
sudo -u postgres createuser -P geoserver
sudo -u postgres createdb -O geoserver geoserver
sudo -u postgres psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" geoserver