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
#!/bin/bash | |
# infinality-fonts-local-install.sh: download the latest versions available of | |
# Infinality fonts: http://bohoomil.com/repo/fonts/ | |
# and install them into $HOME/.local/share/fonts | |
# Copyright © 2016 Antonio Hernández Blas <[email protected]> | |
# This work is free. You can redistribute it and/or modify it under the | |
# terms of the Do What The Fuck You Want To Public License, Version 2, | |
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. |
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
var XHR = (function() { | |
var _get = function(_url, _en_caso_de_exito, _en_caso_de_error) { | |
var _detectar_cambios_de_estado = function(_xhr, _en_caso_de_exito, _en_caso_de_error) { | |
return function() { | |
if (_xhr.readyState === 4) { | |
if (_xhr.status >= 200 && _xhr.status <= 299) { | |
_en_caso_de_exito(_xhr); | |
} else { | |
_en_caso_de_error(_xhr); | |
} |
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
#!/bin/bash | |
# sdm.sh : Start X **automagically** when login-in /dev/tty1 | |
# | |
# Add the execution of this script, or the next lines, at the | |
# end of ~/.bashrc or ~/.bash_profile | |
TTY="$(/usr/bin/tty | sed 's:.*/::')" | |
if [[ ! ${DISPLAY} && ${TERM} == 'linux' && ${TTY} == 'tty1' ]]; then | |
unset TTY | |
exec startx |
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
(def lmap (fn [f xs] | |
(letfn [(g ;; Función Recursiva (FR): recorre la LO para regresar la LA conformada con los resultados | |
;; obtenidos de aplicar la FA sobre cada E en la LO. | |
;; Elemento (E): es cada valor (val) en la LO | |
;; '(valor1 valor2 valorN) | |
[ys ;; Lista Original (LO) o Lista de Entrada (LE) | |
zs ;; Lista de Acumulación (LA) o Lista de Salida (LS) | |
h ;; Función a Aplicar (FA) | |
] | |
(if (nil? (first ys)) |
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
#!/bin/bash | |
# atom-beta-update.sh: download the latest Beta version of Atom from | |
# GitHub: https://atom.io/beta | |
# Copyright © 2016 Antonio Hernández Blas <[email protected]> | |
# This work is free. You can redistribute it and/or modify it under the | |
# terms of the Do What The Fuck You Want To Public License, Version 2, | |
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. |
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
#!/bin/sh | |
# startvnc.sh: starts x11vnc to share the desktop (DISPLAY=:0). | |
# Use -f to force stop and start a new instance of x11vnc. | |
# Copyright © 2016 Antonio Hernández Blas <[email protected]> | |
# This work is free. You can redistribute it and/or modify it under the | |
# terms of the Do What The Fuck You Want To Public License, Version 2, | |
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. |
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
#!/bin/sh | |
# kde5-plasma-antu.sh: install/update Antü Plasma Suite [1], an | |
# "elegant Alternative Suite for Plasma 5" by Fabián Alexis. | |
# | |
# The installation is made inside $HOME/.local/share. | |
# | |
# This script was tested only in: | |
# $ cat /etc/os-release | |
# NAME=openSUSE |
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
/* | |
XHR.get_csv({ | |
"url": "http://127.0.0.1:8080/csv/nombres.csv", | |
"en_caso_de_exito": function(resultado) { console.log(resultado); }, | |
"en_caso_de_error": function(resultado) { console.log(resultado); } | |
}); | |
XHR.head_csv({ | |
"url": "http://127.0.0.1:8080/csv/nombres.cs", |
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
(ns funciones.recursivas) | |
;; Fuentes: | |
;; http://www.cs.us.es/~jalonso/cursos/i1m-15/temas/tema-6.html | |
;; http://www.glc.us.es/~jalonso/vestigium/i1m2015-ejercicios-de-definiciones-por-recursion/ | |
;; Recursión numérica | |
(defn factorial01 | |
[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
var a = (function() { | |
var _colorear = function() { | |
var colores = ["red", "blue", "pink", "yellow"]; | |
var celdas_alrededor = function(celda) { | |
var obj_salida = { "arriba": undefined, "derecha": undefined, "abajo": undefined, "izquierda": undefined }; | |
var indice = celda.cellIndex; | |
/* Celda de arriba */ | |
if (celda.parentElement.previousElementSibling !== null) { |