Skip to content

Instantly share code, notes, and snippets.

@javierarce
javierarce / stemm_es.php
Created July 14, 2012 20:13
Stemm_es a stemming class for spanish
<?php
/*
Stemm_es a stemming class for spanish / Un lexemador para español
Copyright (C) 2007 Paolo Ragone
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
@javierarce
javierarce / gist:1090744
Created July 18, 2011 21:44
Color Picker bookmarklet for Dribbble.com
javascript: void((function() {
var pickerTag = document.getElementById('colorPicker');
if (pickerTag != null) {
document.body.removeChild(pickerTag);
}
var li = document.getElementsByClassName('color');
@javierarce
javierarce / block-art.html
Last active January 20, 2022 08:07
Block art
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"10px","right":"10px","bottom":"10px","left":"10px"}},"border":{"width":"0px","style":"none"}},"backgroundColor":"pale-pink"} -->
<div class="wp-block-group alignfull has-pale-pink-background-color has-background" style="border-style:none;border-width:0px;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px"><!-- wp:group {"style":{"spacing":{"padding":{"top":"10px","right":"10px","bottom":"10px","left":"10px"}}},"backgroundColor":"luminous-vivid-orange"} -->
<div class="wp-block-group has-luminous-vivid-orange-background-color has-background" style="padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px"><!-- wp:group {"style":{"spacing":{"padding":{"top":"10px","right":"10px","bottom":"10px","left":"10px"}}},"backgroundColor":"vivid-red"} -->
<div class="wp-block-group has-vivid-red-background-color has-background" style="padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px"><!-- w
@javierarce
javierarce / gist:7886957
Created December 10, 2013 07:29
Degrees, minutes and seconds to decimal degrees
CREATE OR REPLACE FUNCTION DMS2DD(strDegMinSec varchar)
RETURNS numeric
AS
$$
DECLARE
i numeric;
intDmsLen numeric; -- Length of original string
strCompassPoint Char(1);
strNorm varchar(16) = ''; -- Will contain normalized string
strDegMinSecB varchar(100);
@javierarce
javierarce / gist:5301260
Last active June 20, 2019 23:30
¿Cómo insertar una imagen en Ilustres?

¿Cómo insertar una imagen en Ilustres?

  1. Sube la imagen a tu servidor, a una carpeta pública de Dropbox, etc.

  2. Pega el siguiente código, reemplazando URL_DE_LA_IMAGEN por la URL en cuestión.

<img src="URL_DE_LA_IMAGEN" />

  1. Puntos extras (con link a la propia imagen para verla a tamaño completo):
import gifAnimation.*;
GifMaker gifExport;
float angle = 0.1;
void setup() {
size(500, 500);
smooth();
noStroke();
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!--Edit the title of the page-->
<title>CartoDB Point Clustering</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
.map .cartodb-legend-stack {
border:none;
background:none;
box-shadow:none;
webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
-webkit-border-radius: 0;
-moz-border-radius: 0;
http://development.localhost.lan:3000/viz/c642e27a-488a-11e3-8e71-003ee1fffe8b/embed_map?title=true&description=true&search=false&shareable=false&cartodb_logo=true&layer_selector=true&legends=true&scrollwheel=true&sublayer_options=1&sql=&zoom=0&center_lat=25.799891182053805&center_lon=79.453125
@javierarce
javierarce / gist:6379588
Last active December 21, 2015 22:59
Dark Roadmap style.
var darkRoadmapStyle = [{
featureType:"landscape.natural",
stylers:[
{
gamma:0.01
},
{
weight:0.1
}
]