Skip to content

Instantly share code, notes, and snippets.

View asiermarques's full-sized avatar

Asier Marqués asiermarques

View GitHub Profile
@asiermarques
asiermarques / gist:21431cc61e90d57ac927
Last active August 3, 2016 22:57
openlayers draggable "marker"
var initMap = function(){
var Lon = -2.93 ;
var Lat = 43.2629642;
var Zoom = 14;
var EPSG4326 = new OpenLayers.Projection( "EPSG:4326" );
var EPSG900913 = new OpenLayers.Projection("EPSG:900913");
var LL = new OpenLayers.LonLat( Lon, Lat );
var XY = LL.clone().transform( EPSG4326, EPSG900913 );
@asiermarques
asiermarques / gist:96076391377220c76d23
Last active October 10, 2016 08:33
Recursos y librerías de desarrollo

Librerías Javascript

@asiermarques
asiermarques / gist:4211f6e6b2782a657e67
Last active August 29, 2015 14:05
CSS + JS Framworks for mobile hybrid/webapp development
@asiermarques
asiermarques / gist:bfacb06e1e8fcb1890d1
Last active August 29, 2015 14:08
Standing Desks
@asiermarques
asiermarques / gist:6790362c0bbfa4872182
Created December 12, 2015 18:46
Convert UTF8 unicode string with latin special characters to numeric html representation
function utf2html ($string)
{
$f = 0xffff;
$convmap = array(
160, 255, 0, $f,
402, 402, 0, $f, 913, 929, 0, $f, 931, 937, 0, $f,
945, 969, 0, $f, 977, 978, 0, $f, 982, 982, 0, $f,
8226, 8226, 0, $f, 8230, 8230, 0, $f, 8242, 8243, 0, $f,
8254, 8254, 0, $f, 8260, 8260, 0, $f, 8465, 8465, 0, $f,
8472, 8472, 0, $f, 8476, 8476, 0, $f, 8482, 8482, 0, $f,
@asiermarques
asiermarques / comments_functions.php
Last active September 26, 2016 10:03
WordPress Comments Layout with Bootstrap
<?php
function wp_bootstrap_comments($comment, $args, $depth)
{
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?>>
<article id="comment-<?php comment_ID(); ?>" class="clearfix">
<div class="comment-author vcard clearfix">
<div class="avatar col-sm-3">
<?php echo get_avatar( $comment, $size='75' ); ?>
@asiermarques
asiermarques / AppExtension.php
Created December 3, 2016 12:00
Intl Twig localized filters
<?php
namespace AppBundle\Twig {
use Symfony\Component\Intl\Exception\RuntimeException;
class AppExtension extends \Twig_Extension
{
public function __construct()

User

###wp_usermeta

  • 'billing_first_name'
  • 'billing_last_name'
  • 'billing_company'
  • 'billing_address_1'
  • 'billing_address_2'
  • 'billing_city'