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
///////services.js///////// | |
app.service('twitterService', function($http) { | |
var self = this; | |
this.findAll = function() { | |
return $http.get('/Alltweets') }); | |
}; | |
}); |
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
// Tengo que asignarle los valores a los atributos del builder, y cuando digo | |
// ejecutar o contruir o build me devuelve una instancia con los valores que le puse | |
val builderDePerros = new PerroBuilder | |
builderDePerros.raza = "Perro Trompeta" | |
builderDePerros.edad = 2 | |
val nuevoPerro = builderDePerros.build |
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
/** | |
* Created by erwincdl on 03/02/16. | |
*/ | |
var winston = require('winston'); | |
var getTimestamp = () => { | |
return Date.now(); | |
}; | |
var logger = new winston.Logger({ |
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
module Validations | |
@catch_next_method = false | |
def validate(*validations) | |
@validations = validations | |
@catch_next_method = true | |
end | |
def method_added(method_name) |
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 Data.Char | |
instance Show (a -> b) where | |
show _ = "<function>" | |
data Barbaro = Barbaro {nombre :: String,fuerza :: Int, habilidades :: [String], objetos :: [Barbaro -> Barbaro]} deriving (Show) | |
type TransformacionBarbaro = Barbaro -> Barbaro | |
{- | |
Objeto? :p Mantené los nombres del dominio | |
-} |
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 Text.Show.Functions | |
import Data.Char (toLower, toUpper) | |
import Data.List | |
data Barbaro = Barbaro {nombre::String, fuerza::Int, habilidades::[String], objetos::[Objeto]} deriving (Show) | |
type Objeto = Barbaro -> Barbaro | |
type Aventura = Barbaro -> Bool | |
-- ejemplos de barbaro |
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 Data.Char | |
instance Show (a -> b) where | |
show a= "<function>" | |
{- | |
import Text.Show.Functions | |
-} | |
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
-- TP Funcional PdeP "Ratones Paranoicos" | |
-- Marina Wang | |
import Data.Char | |
instance Show (a -> b) where | |
show a= "<function>" | |
{- | |
o import Text.Show.Functions | |
-} |
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 Data.List | |
import Text.Show.Functions | |
--A | |
isAlfa x = elem x ['a'..'Z'] | |
isUpper x = elem x ['A'..'Z'] | |
isDigit x = elem x ['0'..'9'] | |
diccionario = ["aaron", "abaco", "abecedario", "baliente", "beligerante"] | |
empiezaCon :: String -> String -> Bool |
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 Data.Char | |
instance Show (a -> b) where | |
show a= "<function>" | |
diccionario = ["aaron", "abaco", "abecedario", "baliente", "beligerante"] | |
type Usuario = (String, String) | |
type Aplicacion = ([Usuario], [(String->Bool)], (String -> String)) | |
bancoNacion = ([("juan","sdsdiulwd"), ("robby","sxwrhotxhlhh")], [tieneAlMenosUnNumero,tieneXMayusculas 0], textoCesar 5) | |
empiezaConLetra :: String -> String -> Bool |
OlderNewer