Skip to content

Instantly share code, notes, and snippets.

View felipecabargas's full-sized avatar
🇩🇰
Imported from 🇨🇱

A. Felipe Cabargas felipecabargas

🇩🇰
Imported from 🇨🇱
View GitHub Profile
@felipecabargas
felipecabargas / index.html
Created June 27, 2013 06:46
Two columns layout, centered.
<html>
<head></head>
<link href="styles.css" media="all" rel="stylesheet" type="text/css" />
<body>
<div id="center">
<div id="section"></div>
<div id="aside"></div>
</div>
</body>
</html>
@felipecabargas
felipecabargas / squape.md
Created May 23, 2013 03:42
Formulario de registro de Sociedad de Responsabilidad Ltda. SQUAPE Ltda.

Razón social: (Debe incluir el RUBRO o el NOMBRE de algunos de los socios. Ej.: Agrícola Los Muermos Limitada)

Servicios Informáticos Squape Limitada


Nombre de fantasía: (opcional)

Squape

@felipecabargas
felipecabargas / clase3.html
Created May 13, 2013 16:46
Clase 3 Taller Colaborativo
<html>
<head>
<title>Taller Web Development</title>
<link href="general.css" rel="stylesheet" media="all">
</head>
<body>
<div class="sidebar" id="leftsidebar">
<h3>Sitio Web</h3>
<hr />
@felipecabargas
felipecabargas / nonalphabetic.py
Last active December 16, 2015 21:29
Check character type
def is_number(n):
try:
float(n)
return True
except ValueError:
return False
def is_symbol(n):
if n.isalnum() == False:
return True
@felipecabargas
felipecabargas / programa.py
Last active December 16, 2015 16:40
Módulo y programa para reemplazar puntuación por espacios.
from reemplazar import borrarpuntuacion
entrada = raw_input(">>>")
print borrarpuntuacion(entrada)
@felipecabargas
felipecabargas / .profile
Created April 24, 2013 03:56
'.profile' lines to add for get 'django-admin.py' to work under Mac OS X
#-----------------------------------------------------------------------------
# Django+VirtualEnvWrapper
#-----------------------------------------------------------------------------
export PATH=/usr/local/bin:/usr/local/share/python:$PATH
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/share/python/virtualenvwrapper.sh
export PIP_VIRTUALENV_BASE=$WORKON_HOME
@felipecabargas
felipecabargas / histograma.py
Last active December 16, 2015 10:09
Histograma from progra.usm.cl
pos = 0
neg = 0
print "Ingrese varios valores, termine con cero:"
c = '*'
while True:
num = int(raw_input())
if num == 0:
@felipecabargas
felipecabargas / concreto.py
Created March 29, 2013 00:26
Cubo de Concreto
import turtle as t
from math import sqrt
t.forward(10)
t.right(90)
t.forward(10)
t.right(90)
t.forward(10)
t.right(90)
t.forward(10)
@felipecabargas
felipecabargas / palindromos.py
Last active July 23, 2016 18:53
Verificador de Palíndromos
#!/usr/bin/python
#Developed by A. Felipe Cabargas <[email protected]>
#All rights reserved 2013 - http://github.com/felipecabargas
def invertir_digitos(n):
return int(str(n)[::-1])
n = int(raw_input("Ingrese n: "))
p = invertir_digitos(n)
@felipecabargas
felipecabargas / problema2.py
Created March 25, 2013 23:02
Respuestas problemas 2 y 3 - Primera Actividad en Clases curso de Programación (IWI-131) UTFSM Stgo.
minutos = float(raw_input("Minutos hablados: "))
horario = raw_input("Horario: ")
if horario=="NOCHE":
subtotal = int(minutos*7)
else:
subtotal = int(minutos*10)
if subtotal > 1500:
descuento = int(subtotal/10)