Skip to content

Instantly share code, notes, and snippets.

View pauldijou's full-sized avatar

Paul Dijou pauldijou

View GitHub Profile
@pauldijou
pauldijou / AbstractInput.java
Created June 21, 2012 17:31
Generating methods on CDK
// Abstract component inside CDK. Will serve as base to generate final UIComponent.
@JsfComponent(...)
public abstract class AbstractInput extends UIInput implements CoreProps, UIComponentUtil {
...
}
<richfaces.version>4.3.0-SNAPSHOT</richfaces.version>
<richfaces.bootstrap.version>4.3.0-SNAPSHOT</richfaces.bootstrap.version>
<dependency>
<groupId>org.richfaces.core</groupId>
<artifactId>richfaces-core-impl</artifactId>
<version>${richfaces.version}</version>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
# Activate vitual hosts
NameVirtualHost *:80
# IntellijIDEA Project
<VirtualHost *:80>
ServerName project.localhost
DocumentRoot /home/paul/project
<Directory /home/paul/project>
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
@pauldijou
pauldijou / handler_chains.rb
Created August 1, 2012 08:04
javascript_handler.rb & javascript_handler_spec.rb
require 'awestruct/handler_chain'
require 'awestruct/handlers/file_handler'
require 'awestruct/handlers/markdown_handler'
require 'awestruct/handlers/orgmode_handler'
require 'awestruct/handlers/asciidoc_handler'
require 'awestruct/handlers/restructuredtext_handler'
require 'awestruct/handlers/textile_handler'
require 'awestruct/handlers/erb_handler'
require 'awestruct/handlers/haml_handler'
require 'awestruct/handlers/sass_handler'
<!DOCTYPE html>
<ui:composition template="/resources/template.xhtml" xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:b="http://richfaces.org/sandbox/bootstrap">
<ui:define name="content">
<b:gridRow fluid="#{sessionBean.fluid}" styleClass="component">
<b:gridColumn span="6">
<ui:insert name="body">Body</ui:insert>
@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;
@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 / try.md
Created December 5, 2012 14:46
Trying to install DataStax Community on Fedora 17
@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())
}

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