Skip to content

Instantly share code, notes, and snippets.

Víctor vpascual

Block or report user

Report or block vpascual

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View subcategoria_horizon.csv
date subcategoria value
01/02/2018 Copiadoras -17.506304355
01/02/2018 Sillas -59.682895463
01/02/2018 Teléfonos -15.189498656
01/02/2018 Mesas -100
01/02/2018 Electrodomésticos -80.525449696
01/02/2018 Almacenamiento -36.661717307
01/02/2018 Accesorios -40.009873775
01/02/2018 Mobiliario -56.402907301
01/02/2018 Máquinas -100
View municipis_catalunya_idescat.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Codi;Nom;Codi comarca;Nom comarca;
250019;Abella de la Conca;25;Pallars Jussà;
080018;Abrera;11;Baix Llobregat;
250030;Agramunt;38;Urgell;
080023;Aguilar de Segarra;07;Bages;
170010;Agullana;02;Alt Empordà;
080142;Aiguafreda;41;Vallès Oriental;
430017;Aiguamúrcia;01;Alt Camp;
170025;Aiguaviva;20;Gironès;
250387;Aitona;33;Segrià;
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Series Visualization by @vpascual</title>
<link rel="stylesheet" href="//rawgithub.com/Caged/d3-tip/master/examples/example-styles.css">
<style type="text/css">
body {
font-family: "Avenir" !important;
font-size: 12px;
@vpascual
vpascual / .block
Created Feb 28, 2018
Barchart with SVG
View .block
license: mit
@vpascual
vpascual / .block
Last active Feb 28, 2018
D3 basic barchart with divs
View .block
license: mit
@vpascual
vpascual / .block
Last active Feb 28, 2018
Basic D3 page template
View .block
license: mit
@vpascual
vpascual / .block
Last active Feb 27, 2018
Vega-Lite Bl.ocks example
View .block
license: mit
@vpascual
vpascual / .blocks
Last active Feb 26, 2017
SVG circles on mouse position fading away
View .blocks
license: gpl-3.0
@vpascual
vpascual / remove_accents.py
Created Mar 24, 2016
This little function gets a text in UTF-8 and returns the same string without accents. It is useful for comparing texts
View remove_accents.py
def remove_accents(text):
return unicodedata.normalize('NFKD', unicode(text, 'utf-8')).encode('ASCII', 'ignore')
View Chaning http requests.js
'use strict';
angular.module('solrExplorerApp')
.factory('SolrRequester', function ($q, $http) {
return function(queries) {
var promises = queries.map( function(file) {
var deffered = $q.defer();
You can’t perform that action at this time.