Skip to content

Instantly share code, notes, and snippets.

View pauldijou's full-sized avatar

Paul Dijou pauldijou

View GitHub Profile
@pauldijou
pauldijou / Main.elm
Last active May 19, 2016 21:50
elm-dom-diff
import Html.App
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
-- This should be inside a Item.elm file, declaring it's own module
type alias ModelItem = String
type MsgItem = CloseItem
viewItem: ModelItem -> Html MsgItem
@pauldijou
pauldijou / softwares.md
Created August 7, 2014 23:38
Favorite softwares
Future.sequence(futures).map(results => {
val jsonIssues:List[Issue] = results.map(result => {
play.Logger.debug(result.json.toString())
result.json.validate[Issue] match {
case s: JsSuccess[Issue] => Some(s.get)
case e: JsError => {
Logger.debug("Errors: " + JsError.toFlatJson(e).toString())
None
@pauldijou
pauldijou / tools.md
Created June 8, 2013 16:50
Here is how to configure all my freaking awesome dev tools!
@pauldijou
pauldijou / resources.md
Last active December 18, 2015 00:38
AngularJS resources

CSS Frameworks Comparison

TL;DR

If I should pick only one framework for all my projects, both prototyping and production, I would go with either Bootstrap or Foundation and then improve them depending on my needs, eventually by using nice ideas from other frameworks. Since I'm a LESS user, I will probably go with Bootstrap, but if Foundation would have been build with LESS too, I would have been in deep s****.

Players

@pauldijou
pauldijou / Application.scala
Last active December 14, 2015 20:49
Init AngularJS / PlayFramework files
package controllers
import play.api._
import play.api.mvc._
object Application extends Controller {
def main(any: String) = Action {
Ok(views.html.templates.main())
}
@pauldijou
pauldijou / try.md
Created December 5, 2012 14:46
Trying to install DataStax Community on Fedora 17
@pauldijou
pauldijou / settings.xml
Created September 14, 2012 14:17
Maven settings for JBoss repo
<profiles>
<profile>
<id>jboss-public-repository</id>
<repositories>
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout>
<releases>
@pauldijou
pauldijou / RichMessagesRenderer.java
Created August 22, 2012 12:21
Override RichFaces Message renderer with Bootstrap alert design
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.faces.application.FacesMessage;
import javax.faces.application.FacesMessage.Severity;
import javax.faces.component.UIComponent;
import javax.faces.component.UIMessages;