Skip to content

Instantly share code, notes, and snippets.

View soyHouston256's full-sized avatar
🏠
Working from home

Max Houston Ramirez Martel soyHouston256

🏠
Working from home
View GitHub Profile
@soyHouston256
soyHouston256 / README.txt
Created December 1, 2021 21:15
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.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
def function_decorate(func):
def worker():
print('Iniciamos esta funcion')
func()
print('Finalizamos esta funcion')
return worker
@function_decorate
def suma():
import React from 'react';
class Button extends React.Component {
state = {
count :0,
}
handleClick = ()=>{
this.setState({
count: this.state.count + 1,
})
import sys
clients = ''
def add_client(client_name):
global clients
if client_name.upper() not in clients.upper():
clients += client_name
_add_coma()
else:
import turtle
def run():
tortuga = turtle.Turtle()
tortuga.forward(50)
tortuga.forward(50)
import random
def run():
mi_diccionario = {
'llave1':1,
'llave2':2,
'llave3':3,
'llave4':4,
import random
def run():
numero = random.randint(1,10)
numero_pensado = int(input("Que numero penso la PC: "))
while numero != numero_pensado:
def run():
numero = int(input("Ingrese su numero"))
cont = 0
for i in range(1,numero+1):
if i==1 or i==numero:
continue
if numero % i == 0:
cont +=1
if cont == 0:
return True
def run():
for contador in range(1,101):
if contador % 2 !=0:
continue
print(contador)
for i in range(100):
if i==90:
break
print(i)
for contador in range(100):
print(contador+1)
for contador in range(1,11):
print(contador+1)
#Convertira tu range en una lista
print(list(range(1,11)))