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
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
<?php | |
function remove_gremlins($str) { | |
$cleaned = ''; | |
for ($i = 0, $max = strlen($str); $i < $max; $i++) { | |
$char_str = substr($str, $i, 1); | |
$char = ord($char_str); | |
if (($char >= 32) || ($char == 13)) { // new line or printable chars | |
$cleaned .= $char_str; | |
} |
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 | |
# Make Internet connection fast again | |
sudo ipfw delete 1 | |
sudo ipfw delete 2 | |
sudo ipfw delete 3 | |
sudo ipfw delete 4 |
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; | |
} |
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; |
NewerOlder