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 / prograpepa.py
Last active December 15, 2015 06:29
Ejercicio Programación FCFM (Pepa)
h = input("Cuantos hombres hay?: ")
m = input("Cuantas mujeres hay?: ")
p = 100 * h / (h + m)
print "El porcentaje de hombres es:",p
print "El porcentaje de mujeres es:", (100 - p)
@felipecabargas
felipecabargas / grayscaletransition.css
Last active December 15, 2015 06:19
grayScale + opacity CSS Transition
.class{
opacity: 0.8;
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
filter: gray; /* IE6-9 */
-webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
/*CSS Transition*/
-webkit-transition: all 0,2s ;
-moz-transition: all 0,2s ;
-ms-transition: all 0,2s ;
-o-transition: all 0,2s ;
@felipecabargas
felipecabargas / custom-navbar.css
Created January 26, 2012 13:27
jquery-mobile custom navbar theme
.ui-footer.ui-bar-footer {
-webkit-box-shadow: 0 1px 0 rgba(39,39,39,0.5) inset, 0 -1px 0 rgba(0,0,0,0) inset;
-moz-box-shadow: 0 1px 0 rgba(39,39,39,0.5) inset, 0 -1px 0 rgba(0,0,0,0) inset;
box-shadow: 0 1px 0 rgba(39,39,39,0.5) inset, 0 -1px 0 rgba(0,0,0,0) inset;
border: 0 none;
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, #343434),