This file contains hidden or 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.stream.IntStream; | |
import static java.lang.String.format; | |
class Sing99BottlesOfBeerOnTheWall { | |
private static final int TOTAL_BOTTLES = 100; | |
public static void main(String[] args) { | |
IntStream.rangeClosed(1, TOTAL_BOTTLES) | |
.map(i -> TOTAL_BOTTLES - i) |
This file contains hidden or 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
# A plugin to obtain category pagination with Jekyll | |
# | |
# Usage: | |
# <ul class="pagination"> | |
# {% if page.blog_previous %} | |
# <li class="prev"><a href="{{ page.blog_previous.url | prepend: site.baseurl }}" title="{{ page.blog_previous.title }}">« Previous</a></li> | |
# {% else %} | |
# <li class="prev disabled"><a>← Previous</a></li> | |
# {% endif %} | |
# <li><a href="{{ "/blog/" | prepend: site.baseurl }}">Blog</a></li> |
This file contains hidden or 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
<rich:dataTable var="v" value="#{bean.all}" id="table" | |
noDataLabel="No hay registros" rows="10" | |
styleClass="table table-striped"> | |
<rich:column sortBy="#{v.codigo}" sortOrder="ascending" | |
filterValue="#{bean.codigoFilter}" | |
filterExpression="#{fn:containsIgnoreCase(v.codigo, bean.codigoFilter)}"> | |
<f:facet name="header"> | |
<h:panelGroup> |