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
Zeros a esquerda... | |
c = "3" | |
c.rjust(3, "0") | |
"003" | |
ou | |
"%.3i"%3 | |
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
user=> (+ 1 2 3) | |
6 | |
user=> (. javax.swing.JOptionPane (showMessageDialog nil "HW")) | |
nil | |
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
# CODE: | |
def order_hash hash | |
keys_ordered = Array.new | |
new_hash = Hash.new | |
hash.each_key { |k| new_hash[k.to_s] = hash[k] } | |
keys_ordered = new_hash.keys.sort | |
end |
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
<application> | |
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler> | |
</application> |
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
<?xml version="1.0"?> | |
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> | |
<context-param> | |
<param-name>facelets.REFRESH_PERIOD</param-name> | |
<param-value>2</param-value> | |
</context-param> |
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
<div id="_header"> | |
<h6>header - facelets</h6> | |
</div> |
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
<div id="_footer"> | |
<hr /> | |
<h6>footer - facelets</h6> | |
</div> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:ui="http://java.sun.com/jsf/facelets" | |
xmlns:f="http://java.sun.com/jsf/core"> | |
<head> | |
<title><ui:insert name="title">Default title</ui:insert></title> | |
<link rel="stylesheet" type="text/css" href="./css/main.css"/> | |
</head> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:ui="http://java.sun.com/jsf/facelets" | |
xmlns:h="http://java.sun.com/jsf/html" | |
xmlns:f="http://java.sun.com/jsf/core"> | |
<ui:composition template="/WEB-INF/layout/layout.xhtml"> | |
<ui:define name="title">Login</ui:define> | |
<ui:define name="content"> |
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
<project name="MyProject" default="all" basedir="."> | |
<description>export the project in the maven format</description> | |
<tstamp> | |
<format property="nowstamp" pattern="yyyyMMdd" locale="en" /> | |
<!-- <format property="nowstamp" pattern="yyyyMMdd-HHmmss" locale="en" /> --> | |
</tstamp> | |
<!-- set global properties for this build --> | |
<property name="src" location="src" /> |
OlderNewer