Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Juan Julián Merelo Guervós JJ

🏠
Working from home
Block or report user

Report or block JJ

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
@JJ
JJ / wilcoxon-ga.chunk.pl
Last active Aug 29, 2015
Applying Wilcoxon-comparison based partial order to an evolutionary algorithm
View wilcoxon-ga.chunk.pl
for my $p ( @pop ) {
push(@{$p->{'_fitness_memory'}}, $noisy->apply( $p ));
$p->Fitness($comparisons);
}
for my $i (1..$comparisons) {
my @copy_of_population = @pop;
while( @copy_of_population ) {
my $first = splice( @copy_of_population, rand( @copy_of_population ), 1 );
my $second = splice( @copy_of_population, rand( @copy_of_population ), 1 );
my $aov = Statistics::ANOVA->new();
@JJ
JJ / .bashrc
Last active Aug 29, 2015 — forked from justintv/.bashrc
View .bashrc
# If you work with git, you've probably had that nagging sensation
# of not knowing what branch you are on, or worse, you pull the wrong branch.
# Worry no longer!
export PS1="\\w<\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)>$ "
# This will change your prompt to display not only your working directory but also your current git branch, if you have one.
#~/txt/ocio/HashSlash<master>$ git checkout writer
#Switched to branch 'writer'
#~/txt/ocio/HashSlash<writer>$ git checkout master
View pre-commit
#!/bin/bash -l
# A git hook script to find and fix trailing whitespace
# in your commits. Bypass it with the --no-verify option
# to git-commit
#
.git/hooks/pre-commit-master-no-no
if [[ $? == 1 ]]
then
View top-github-users-dec-2014.md

Most active GitHub users

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Tue, 03 Dec 2013 07:25:57 GMT till Wed, 03 Dec 2014 07:25:57 GMT.

Only first 1000 GitHub users according to the count of followers and with more than a hundred repos are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
  .filter((user) -> user.followers > 101 & user.repos > 101)
@JJ
JJ / github-user-stats-dec-2014.json
Created Dec 3, 2014
Top GitHub users Dec 2014 (filtered by number of followers and repos > 100)
View github-user-stats-dec-2014.json
[
{
"name": "♩ Ionică Bizău ♫ ♪",
"login": "IonicaBizau",
"location": "Romania",
"language": "JavaScript",
"gravatar": "https://avatars3.githubusercontent.com/u/2864371?v=3&s=400",
"followers": 150,
"organizations": [
"jillix",
@JJ
JJ / top-github-users-granada.md
Created Dec 4, 2014
Top GitHub users, Dec 2014, Granada
View top-github-users-granada.md

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 04 Dec 2013 06:20:22 GMT till Thu, 04 Dec 2014 06:20:22 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
  .filter((user) -> user.followers > 1)
@JJ
JJ / paras.pl
Created Dec 15, 2014
Write standard input or files as paragraphs in an HTML correct page
View paras.pl
#!/usr/bin/env perl
use CGI qw(:standard);
use strict;
use warnings;
use v5.14; # Para say
my @parrafos = <>;
say start_html("Salida de párrafos");
for my $p (@parrafos) {
@JJ
JJ / equipo.xml
Created Jul 13, 2011
Pretty-print XML files with user-specified colors and indents
View equipo.xml
?xml version="1.0"?>
<?xml-stylesheet href="tienda0.xsl" type="text/xsl"?>
<equipo>
<jugador posicion='portero'>Araña</jugador>
<jugador posicion='delantero'>Cazagoles</jugador>
</equipo>
@JJ
JJ / jquery-test.js
Created Jan 25, 2012
Prueba con JQuery para el taller de Ajax de la OSLUGR. Un ejemplo mínimo de uso de Ajax con JQuery
View jquery-test.js
$(function(){
$("a.ajax").click((function(){
$.get($(this).attr('href'), function(data){
alert("Ya");
})
.success(function(data){
alert( 'Lo hise' )})
.error(function(data){
alert( 'Pos no' )})
.complete(function(data){
View mandelbrot.pl
@size = (1920, 1080);
@center = (-.743653135, .131826563);
$zoom = .000014628;
$max_it = 700;
$oversample = 2;
$_ *= $oversample for (@size);
open $fh, "|-", "convert -size ".join("x",@size)." -depth 8 gray:- ".
"-resize ".(100/$oversample)."% mandel.png";
for $py (1 .. $size[1]) {
You can’t perform that action at this time.