Skip to content

Instantly share code, notes, and snippets.

View andersanmiguel's full-sized avatar

Ander andersanmiguel

View GitHub Profile
@andersanmiguel
andersanmiguel / gist:9f1ff3045dc5c12ac3a1
Created September 9, 2014 11:22
Basic example plugin, load json data into wordpress
<?php
/**
* Plugin Name: Cargar actividades de los proyectos
* Plugin URI: http://example.com
* Description: Plugin para cargar las activiades de los proyectos a través de un shortcode con la siguiente estructura. [actividades proyecto="nombreproyecto"]
* Version: 0.1
* Author: Ander San Miguel
* Author URI: http://lacuevaenruso.com
* License: GPL2
*/
/* =INITIAL
v2.1, by Faruk Ates - www.kurafire.net
Addendum by Robert Nyman - www.robertnyman.com
Addition by Christian Montoya - www.christianmontoya.net */
/* Neutralize styling:
Elements we want to clean out entirely: */
html, body, form, fieldset {
margin: 0;
padding: 0;
@andersanmiguel
andersanmiguel / gradients.less
Created May 23, 2012 07:55
Gradients [LESS]
.gradient(@color: #F5F5F5, @start: #EEE, @stop: #FFF) {
background: @color;
background: -webkit-gradient(linear,
left bottom,
left top,
color-stop(0, @start),
color-stop(1, @stop));
background: -ms-linear-gradient(bottom,
@start,
@stop);
@andersanmiguel
andersanmiguel / mixins.less
Created April 3, 2012 15:35
Box-sizing [less]
.box-sizing() {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}