This file contains 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
#! /bin/bash | |
# Para corregir errores con los directorios que contengan espacios: | |
SAVEIFS=$IFS; | |
IFS=$(echo -en "\n\b"); | |
# A partir del directorio actual, abrimos con la aplicación por defecto | |
# (xdg-open), la lista de archivos mostrados por el comando "ls". | |
# A este script se le pueden pasar los mismos parámetros que a "ls"(pues | |
# básicamente, se le pasan directamente a dicho comando). |
This file contains 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 <iostream> | |
#include <stdlib.h> | |
#include <vector> | |
#include <math.h> | |
using namespace std; | |
int main(int argc, char *argv[]){ | |
if(argc != 2){ | |
cout << "Uso correcto: ./Sierpinski <número de triángulos centrales>\n"; |
This file contains 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
#! /bin/bash | |
# Para corregir errores con los directorios que contengan espacios: | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
a=$PWD | |
# A partir del directorio actual, buscamos los directorios con la carpeta oculta ".git" | |
# y le quitamos el primer y último campo ya que serán "." y ".git", respectivamente. |
This file contains 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
# The hasselhoff attack taken to a new level | |
# curl -L http://git.io/pxu2 | bash | |
TARGET=`echo ~`/hasselhoff.jpg | |
wget http://www.ljpaez.es/imagen/hasselhoff.jpg $TARGET | |
gsettings set org.gnome.desktop.background picture-uri file:///$TARGET | |
xmessage -center "you have been hasselhoffinated" |