map :: (a -> b) -> f a -> f b
for example for lists []
map :: (a -> b) -> [a] -> [b]
and for Maybe
map :: (a -> b) -> Maybe a -> Maybe b
map :: (a -> b) -> f a -> f b
for example for lists []
map :: (a -> b) -> [a] -> [b]
and for Maybe
map :: (a -> b) -> Maybe a -> Maybe b
# make your colleages stop using "git add ." | |
# | |
# you should put this into usual alias file .bashrc, .zshrc or whatever you use | |
# - make sure path to git executable fits your setup (here on linux/ubuntu) | |
# - increate timeout if symptoms persist | |
git() { | |
if [[ $@ == "add ." ]]; then | |
echo "you shall use 'git add -p instead'" | |
echo ' ,' | |
echo ' /| __' |
import org.scalatest.{Matchers, FunSuite} | |
import scala.annotation.tailrec | |
// https://www.youtube.com/watch?v=hzf3hTUKk8U | |
// http://blog.richdougherty.com/2009/04/tail-calls-tailrec-and-trampolines.html | |
class TrampolineTest extends FunSuite with Matchers { | |
sealed trait Trampoline[A] { | |
final def run: A = runImpl(this) |
At ParkatmyHouse.com we are looking to expand our small team to include a number of new development positions ahead of a major project. Go ahead and take a look at the role descriptions. If the must haves don't quite fit, let us know anyway, you never know!
Must have
require 'rubygems' | |
require 'fog' | |
require 'zerigo_dns' | |
# A simple script to help you leave zerigo behind | |
# it relies on the excellent fog library http://fog.io/dns/ | |
# It copies all of your Zerigo zones to DNSimple | |
# It is currently targeting DNSimple but fog supports many other |
#!/bin/sh | |
# one way (older scala version will be installed) | |
# sudo apt-get install scala | |
#2nd way | |
sudo apt-get remove scala-library scala | |
wget http://www.scala-lang.org/files/archive/scala-2.11.4.deb | |
sudo dpkg -i scala-2.11.4.deb | |
sudo apt-get update |
As kindly requested :)
var x = require('casper').selectXPath
run()
final callremoteScripts
option as wellthis.test.assertEval(function(title)}, 'google.fr title is "Google"', 'Google');
should be this.test.assertEval(function(title)}, 'Google', 'google.fr title is "Google"');
#Play2 : Les Iteratees expliqués aux humains... francophones!
Disclaimer : Ce qui suit est la traduction d'un article anglophone paru sur le blog mandubian.com
Vous pouvez retrouver l'article original ici
Vous avez probablement remarqué une nouvelle fonctionnalité intrigante de Play2 nommée Iteratee
(ainsi que ses compagnons Enumerators
et Enumeratee
).
Le but de cet article est d'essayer de rendre le concept d'Iteratee compréhensible pour le plus grand nombre avec des arguments simples, en évitant l'approche mathématique / fonctionnelle.
Cet article ne prétend pas tout expliquer à propos des Iteratee / Enumerator / Enumeratee mais traite plutôt les idées qui se cachent derrière.
killall ssh-agent; eval `ssh-agent` |