Skip to content

Instantly share code, notes, and snippets.

View javierarce's full-sized avatar

Javier Arce javierarce

View GitHub Profile
SELECT
ST_ConvexHull(
ST_Collect(the_geom_webmercator)
) as the_geom_webmercator
FROM checkins
WHERE city <> 'undefined'
GROUP BY city
@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):
<iframe frameborder="0" height="550" src="http://osm2.cartodb.com/tables/meteoritessize/embed_map?title=true&amp;description=true&amp;search=false&amp;shareable=false&amp;cartodb_logo=true&amp;sql=&amp;zoom=2&amp;center_lat=20.3034175184893&amp;center_lon=26.71875" width="639"></iframe>
<iframe width='400' height='400' frameborder='0' src='http://arce.cartodb.com/tables/github_users/embed_map?title=true&description=true&search=false&shareable=false&cartodb_logo=true&sql=&zoom=3&center_lat=77.85905520333469&center_lon=-34.64069842070311'></iframe>

cavort
chutzpah
sobriquet

--

cav·ort

/kəˈvôrt/

  • Jump or dance around excitedly: "monkeys leap and cavort in the branches".
# Download file from URL + Upload to your server + Copy short URL to your clipboard
# Use it like this:
# gi http://25.media.tumblr.com/tumblr_md2j4a4Eot1rddgbmo1_1280.png
# And get something like this:
# tumblr_md2j4a4Eot1rddgbmo1_1280.png 100% 41KB 41.4KB/s 00:00
# Copied to the clipboard: http://goo.gl/ITEIG
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<style>
.curve, .line {
fill: none;
stroke-width: 1px;
}
.curve {
@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.
// Configuration and API URL
var username = "YOUR_USERNAME";
var api_key = "YOUR_API_KEY"; // To get an API key go to http://www.last.fm/api/account
var url = "http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=" + username + "&api_key=" + api_key + "&limit=1&format=json&callback=lastTrackCallback";
// API call
function getCurrentTrack() {
$.ajax({
url: url,
data: null,