- El Herreño (Canarian typical food): https://goo.gl/maps/1hueqs8oGEn
- El Roque https://goo.gl/maps/gudNFLHMk8A2
- Cubateria or Los Pescaditos (fish): https://goo.gl/maps/nj3WNTS2BoF2
- Las Brasas (meat and Canarian typical food): https://goo.gl/maps/PZPDQCo44P22
- El Balcon de Zamora (meat and Canarian typical food): https://goo.gl/maps/NJfHfETb2Lt
- Cofradia Pescadores Arguineguin (fish): https://goo.gl/maps/h1KPnbNna7u
- Restaurante Vega: https://goo.gl/maps/JJDtu76UVzw
- Mirador el Atlante: https://goo.gl/maps/2m5KYnEpXyA2
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 shapeless._, syntax.std.product._, spray.json.{JsNumber, JsString} | |
case class Person(name: String, age: Int) | |
val p = Person("Pepe", 54) | |
p.toMap[Symbol, Any] // res0: Map[Symbol,Any] = Map('age -> 54, 'name -> Pepe) | |
p.toMap[Symbol, Any].map { | |
case (s, i: Int) => s.toString -> JsNumber(i) |
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 Resolvers._ | |
object add { | |
def apply(org: String, sub: String) = { | |
val newResolver = Resolver.Http("bintray", s"https://dl.bintray.com/$org/$sub/", MavenPattern, true) | |
interp.resolvers() = interp.resolvers() :+ newResolver | |
} | |
} |
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 Control.Monad | |
import Data.List | |
let unRoll = join .map (uncurry $ flip replicate) | |
let roll = map $ map (\l@(x:_) -> (x, length l)) . group:: [String] -> [[(Char, Int)]] | |
let powerSet = roll . nub . filterM (const [True, False]) . unRoll | |
powerSet [('a',2), ('b',2)] |
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
def is_ancestor_of?(other_page) | |
other_page.is_descendant_of? self | |
end |
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
<html> | |
<head> | |
<title> ¡Hola! </title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script src="/socket.io/socket.io.js"></script> | |
<script> | |
var server = io.connect('http://localhost:8080'); | |
document.onkeypress = manda; | |
function manda(event) { |
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
/* Este factorial es recursivo, pero operamos de alguna forma la | |
* llamada recursiva (la multiplicamos por n). | |
*/ | |
long factorial(long n) { | |
if (n == 0) { | |
return 1; | |
} | |
else { | |
return n * factorial(n-1); |
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
-- http://www.jasq.org/2/post/2012/05/inverse-fizzbuzz.html | |
import Control.Applicative -- para <*> | |
import Data.List -- para sortBy | |
import qualified Data.Map as M | |
divides m n = n `mod` m == 0 | |
fizzbuzzTest n = [divides 3, divides 5] <*> [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
{-# OPTIONS_GHC -XDeriveDataTypeable #-} | |
import XMonad | |
import Data.Monoid | |
import System.Exit | |
import XMonad.Config.Gnome | |
import qualified XMonad.StackSet as W | |
import qualified Data.Map as M | |
import XMonad.Util.Run (safeSpawn) |
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 | |
/usr/local/bin/emacsclient -c "$@" |
NewerOlder