Skip to content

Instantly share code, notes, and snippets.

View jto's full-sized avatar
🏠
Working from home

Julien Tournay jto

🏠
Working from home
View GitHub Profile
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
test
tttttt
++++++++++
[ Boucle initiale qui affecte des valeurs utiles au tableau
>+++++++>++++++++++>+++>+<<<<-
]
à la sortie de la boucle le tableau contient:
>++. 'H' = 72 (70 plus 2)
>+. 'e' = 101 (100 plus 1)
+++++++. 'l' = 108 (101 plus 7)
. 'l' = 108
+++. 'o' = 111 (108 plus 3)
/*
Before to use this, U need to place 2 jar file in lib folder of your
play project.
jcommon-xx.jar
jfreechart-xx.jar
( These File can found in JFreeChart Download Package lib folder)
Here is Code in controller Method.
*/
package jto.demo
case class Log(v: String){
def log = print("[LOG] " + v)
}
trait LogConv{
implicit def toLog(v: String): Log = Log(v)
}
package jto.demo
object HelloWorld {
def main(args: Array[String]) {
println("Hello, world!")
}
}
test
@jto
jto / fabfile.py
Created September 23, 2010 13:54
import os
import time
from fabric.api import *
from fabric.contrib.files import exists
#Roles
env.roledefs = {
'testing': ['localhost'],
'staging': ['host1.preprod', 'host2.preprod'],
'production': ['prod1.demo.com', 'prod2.demo.com']
package controllers;
import com.google.gson.Gson;
import play.mvc.*;
import play.data.validation.*;
import java.util.*;
import models.*;