This file contains hidden or 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
[INFO] Scanning for projects... | |
[INFO] Searching repository for plugin with prefix: 'sonar'. | |
[INFO] Ignoring available plugin update: 2.0-beta-2 as it requires Maven version 3.0 | |
[INFO] Ignoring available plugin update: 2.0-beta-1 as it requires Maven version 3.0 | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building sampleMavenProject | |
[INFO] task-segment: [clean, install] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] [clean:clean] | |
[INFO] Deleting /home/jpcaruana/projets/buildr-sonar/mavenSampleProject/target |
This file contains hidden or 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
object Rationnel { | |
implicit def conversionIntVersRationnel(i :Int) :Rationnel = Rationnel(i) | |
def apply(a :Int) :Rationnel = new Rationnel(a,1) | |
def pgcd(a :Int, b :Int) :Int = { | |
if (b == 0) a | |
else pgcd(b, a%b) | |
} | |
} | |
case class Rationnel(n :Int, d :Int) { |
This file contains hidden or 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
package org.agitude.fileutils | |
import java.io.File | |
import org.apache.commons.io.FileUtils | |
// Utility object for test purpose only | |
object DummyProject { | |
private val TMP_DIR = new File("tmp") | |
val WEB_PACKAGE = Package("org.agitude.web", "module1") |
This file contains hidden or 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
public class DemarreurDeSuite extends DoFixture { | |
private static final Logger logger = Logger.getLogger(DemarreurDeSuite.class); | |
public boolean demarre() throws Exception { | |
logger.info("demarrage de tous les mock serveurs"); | |
demarreStreamer(); | |
demarrePublicite(); | |
demarrePaiement(); | |
demarreOptionsClient(); |
This file contains hidden or 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
" This must be first, because it changes other options as side effect | |
set nocompatible | |
" coloration syntaxique | |
syn on | |
" met les buffer en arriere plan plutot que de les fermer | |
set hidden | |
"Détection du type de fichier pour l'indentation |
This file contains hidden or 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
# Scavenged from Git 1.6.5.x contrib/completion/git_completion.bash | |
# __git_ps1 accepts 0 or 1 arguments (i.e., format string) | |
# returns text to add to bash PS1 prompt (includes branch name) | |
__gitdir () | |
{ | |
if [ -z "${1-}" ]; then | |
if [ -n "${__git_dir-}" ]; then | |
echo "$__git_dir" | |
elif [ -d .git ]; then | |
echo .git |
This file contains hidden or 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 Precompiler | |
include Extension | |
first_time do | |
# Define task not specific to any projet. | |
desc 'Precompile jsps' | |
Project.local_task('precompile' => 'compile') { |name| "Precompiling #{name}" } | |
end | |
before_define do |project| |
This file contains hidden or 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
redis 127.0.0.1:6379> RPUSH messages "Bienvenue dans redis" | |
(integer) 1 | |
redis 127.0.0.1:6379> RPUSH messages "Merci pour cette petite introduction sur barreverte.fr" | |
(integer) 2 | |
redis 127.0.0.1:6379> RPUSH messages "Non seulement je passe du bon temps, mais je m'amuse en meme temps" | |
(integer) 3 | |
redis 127.0.0.1:6379> LRANGE messages 0 3 | |
1) "Bienvenue dans redis" | |
2) "Merci pour cette petite introduction sur barreverte.fr" | |
3) "Non seulement je passe du bon temps, mais je m'amuse en meme temps" |
This file contains hidden or 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 | |
xrandr --output VGA1 --auto --right-of HDMI1 |
This file contains hidden or 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
# Author: Pieter Noordhuis | |
# Description: Simple demo to showcase Redis PubSub with EventMachine | |
# | |
# Update 7 Oct 2010: | |
# - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
# the WebSocket protocol implementation in the cramp gem does not work | |
# well with Chrome's (newer) WebSocket implementation. | |
# | |
# Requirements: | |
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |