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
# First install homebrew | |
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | |
# Choose the name of the virtualenv as simplecv | |
virtualenv simplecv --no-site-packages | |
source simplecv/bin/activate | |
# This activates the virtualenv; your command prompt should change from `$` to `(simplecv)$` | |
# Next the dependencies | |
sudo easy_install pip # Can be ignored, if pip already present |
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
// La currificación (estilo Haskell) se consigue | |
// de forma efectiva con sólo separar los | |
// argumentos 1º, 2º, ... con paréntesis en lugar | |
// de comas. | |
// | |
// Por ejemplo, en lugar de | |
// | |
// miFuncion(arg1, arg2, arg3) | |
// | |
// Hacer |
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
*** AVISO, si lees ésto podrías llegar a desaprender *** | |
Cuidado con las mónadas, yo estoy bastante seguro de no entenderlas (bien). | |
Me explico, el concepto "por definición" de mónada es bastante simple, | |
bastante confuso al principio (como todo, supongo) pero luego es simple | |
(simple en el sentido de que las reglas que se aplican son sencillas, | |
luego cada mónada ya... puede ser infumable de entender). | |
(Ojo, lo que sigue hasta el siguiente aviso es una explicación CONCEPTUAL, |
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
import Prelude hiding (map) | |
-- Generalizar el mapeo (por ejemplo) consiste en definirlo | |
class Mappeable f where | |
map :: (a -> b) -> f a -> f b | |
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
_"es generación Lazy"_ | |
tienes razón y quizás la he obviado injustamente, es una buena herramienta, pero piensa | |
por ejemplo que en C#, tú puedes escribir igualmente lo siguiente: | |
{{ | |
var ApiGit = new JsonProvider<Repo>("http..."); | |
var repo = ApiGit.Load("https://api.github.com/repos/"+user+"/"+repoName); | |
var gIndex = 3 * repo.Forks + repo.StargazersCount + repo.WatchersCount; | |
}} | |
Entonces, VS te dará errores de tipo, pero *si tienes en background el "generador de wrappers"* |
NewerOlder