Skip to content

Instantly share code, notes, and snippets.

@rooven
rooven / declarative_p.js
Created September 19, 2018 17:57
Declarative pattern
const double = (arr) => arr.map((number) => number * 2)
@rooven
rooven / Super simple background image slideshow.css
Created March 26, 2016 04:50 — forked from mhulse/Super simple background image slideshow.css
Super simple jQuery background-image random slideshow (using CSS3 for the transition and gets the image paths via HTML5 `data` attribute).
[data-slides] {
background-image: url(../../uploads/banner1.jpg); /* Default image. */
background-repeat: no-repeat;
background-position: center top;
background-size: cover;
transition: background-image 1s linear;
}
/* Use additional CSS to control the `height` of `[data-slides]`, like so: */
@rooven
rooven / conexionBD.php
Created February 27, 2013 19:51
conexion a base de datos SQL con PHP
<?php
class ConexionBD
{
var $servidor;
var $base_datos;
var $usuario;
var $password;
var $conexion;
@rooven
rooven / galeria.php
Created July 25, 2011 05:07
Codigo para galeria simple php sin bd
<title>Galería de fotos</title>
<style type="text/css">.newStyle1 {
font-family: Arial, Helvetica, sans-serif;
}
.imagen{
width:300px;
padding:2em;
float:left;
}