Skip to content

Instantly share code, notes, and snippets.

View athieriot's full-sized avatar

Aurélien Thieriot athieriot

View GitHub Profile
@skull-squadron
skull-squadron / gist:952660
Created May 3, 2011 01:18
Restart ssh-agent
killall ssh-agent; eval `ssh-agent`
@loicdescotte
loicdescotte / iteratees_humains.md
Last active October 10, 2015 17:47
Play2 : Les Iteratees expliqués aux humains... francophones!

#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.

Notes about your presentation draft

As kindly requested :)

@owainlewis
owainlewis / play2console.md
Last active December 15, 2015 21:29
Play 2 Scala Console

It is not immediately obvious how to use the play console so this might help.

Play2 provides an equivalent of the rails console you might be used to.

Use

cd myapp
play console
@visenger
visenger / install_scala_sbt.sh
Last active January 31, 2023 19:10
Scala and sbt installation on ubuntu 12.04
#!/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
@bhauman
bhauman / screw_you_zerigo.rb
Last active January 2, 2016 00:49
Zerigo's recent rate increase will raise my yearly cost 5000% so I created this lovely little script to help you leave Zerigo behind. It relies on the excellent fog library http://fog.io/dns/ It is currently targeting DNSimple but fog supports many other providers. Using it is very satisfying. After setting the correct connection settings just t…
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

Logo

Now Hiring: ParkatmyHouse.com

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!


Front-end Developer

Must have

@ubourdon
ubourdon / TrampolineTest.scala
Created September 22, 2015 14:40
Trampoline style
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)
@SylvainJuge
SylvainJuge / git-add-bunny.sh
Last active October 7, 2016 13:52
prevent your colleagues from using "git add ."
# 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 ' /| __'
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