This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Problem with this is that it needs lots of installed stuff, so I'll put it here | |
# sudo or admin shell is presupposed | |
apt-get install make curl python-setuptools gcc g++ | |
#Maybe you can safely supress make and gcc from here, since they are dependencies of g++ | |
#Then you can proceed to the original set | |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir /usr/local | |
mkdir ~/node-latest-install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use v5.14; | |
use Git::Hooks; | |
use File::Slurp qw(read_file write_file); | |
my $layout_preffix=<<EOT; | |
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name gcitations | |
// @namespace http://merelo.net/gmscripts | |
// @description Compute number of citations per year in Google Citations | |
// @include http://scholar.google.com/citations* | |
// ==/UserScript== | |
var imgs = document.getElementsByTagName('img'); | |
var my_url; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
// with help from http://www.eskimo.com/~scs/cclass/notes/sx13.html | |
int main( int argc, char *argv[] ) | |
{ | |
char *hidden = argv[1]; | |
char *target = argv[2]; | |
char colors = atoi( argv[3] ); | |
printf( "Hidden %s target %s colors %d\n", hidden, target, colors); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use File::Slurp qw(read_file); | |
my $csv = shift || die "No defaults; $0 <csvfile>\n"; | |
my $content = read_file($csv) || die "Can't read file $csv: $!\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
?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> |
NewerOlder