This file contains 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 FaceletRenderer { | |
private FacesContext context; | |
public FaceletRenderer(FacesContext context) { | |
this.context = context; | |
} | |
/** | |
* Render the Facelets template specified. |
This file contains 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
void setup() { | |
size(400, 300); | |
background(255); | |
} | |
void touchMove(TouchEvent touchEvent) { | |
// empty the canvas | |
noStroke(); | |
fill(255); | |
rect(0, 0, 400, 300); |
This file contains 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
import java.util.Map; | |
import javax.el.ELContext; | |
import javax.el.ExpressionFactory; | |
import javax.el.ValueExpression; | |
import javax.faces.component.UINamingContainer; | |
import javax.faces.context.FacesContext; | |
import javax.servlet.ServletRequest; | |
import javax.servlet.http.HttpServletRequestWrapper; |
This file contains 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
import java.io.IOException; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; | |
import javax.servlet.FilterConfig; | |
import javax.servlet.ServletException; | |
import javax.servlet.ServletRequest; | |
import javax.servlet.ServletResponse; | |
import javax.servlet.http.HttpServletRequest; |
This file contains 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
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.Enumeration; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletRequestWrapper; |
This file contains 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
<!-- Wrap Request --> | |
<filter> | |
<filter-name>wrapRequestFilter</filter-name> | |
<filter-class>pkg.to.WrapRequestFilter</filter-class> | |
</filter> | |
<filter-mapping> | |
<filter-name>wrapRequestFilter</filter-name> | |
<url-pattern>/*</url-pattern> | |
</filter-mapping> |
This file contains 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 | |
# This script wraps around mvn -ep to take password without it being revealed. | |
echo -n "Password: " | |
read -s password | |
echo "" | |
mvn -ep "$password" |
This file contains 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
Index: CutyCapt.cpp | |
=================================================================== | |
--- CutyCapt.cpp (revision 10) | |
+++ CutyCapt.cpp (working copy) | |
@@ -363,6 +363,7 @@ | |
" --js-can-access-clipboard=<on|off> Script clipboard privs (default: unknown)\n" | |
#if QT_VERSION >= 0x040500 | |
" --print-backgrounds=<on|off> Backgrounds in PDF/PS output (default: off) \n" | |
+ " --no-background=<on|off> Transparent background (as opposed to white background) (default: off) \n" | |
" --zoom-factor=<float> Page zoom factor (default: no zooming) \n" |
This file contains 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
import org.springframework.beans.BeansException; | |
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; | |
import org.springframework.beans.factory.config.PropertyOverrideConfigurer; | |
public class BeanPropertyOverrideConfigurer extends PropertyOverrideConfigurer { | |
private String beanName; | |
public String getBeanName() { | |
return beanName; |
This file contains 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
$root-font-size: 16px; | |
@mixin font($size, $line-height, $weight: null) { | |
font-size: $size; // IE fix | |
font-size: ($size / $root-font-size) * 1rem; | |
@if $weight != null { | |
font-weight: $weight; | |
} | |
line-height: $line-height; | |
} |
OlderNewer