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
public interface OrderCheckoutCallback { | |
void onSuccess(OrderFrete order); | |
void shippingInformationWithValidationIssues(); | |
void orderAlreadyProcessed(Order order); | |
void sellerNotFoundOnCarts(); | |
} |
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
<article> | |
<h1>Artigo importantissimo</h1> | |
<p>Intro lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmodtempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.</p> | |
<p>Mais intro. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmodtempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p> | |
<section> | |
<h1>Section #1</h1> | |
<p>Dentro da secao. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> | |
<p>Dentro da secao. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt.</p> | |
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
/** | |
* Flexbox demo | |
*/ | |
footer { | |
background-image: url(http://mirrorfashion.net/loja/img/fundo-rodape.png); | |
width: 100%; | |
} | |
.container { | |
width: 940px; |
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
.primeiro div { | |
display: inline-block; | |
} | |
.segundo div { | |
float: left; | |
} | |
div { | |
width: 200px; | |
height: 200px; | |
background: red; |
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
#primeiro { | |
background: red; | |
float: left; | |
} | |
#segundo { | |
background: blue; | |
float: left; | |
clear: left; | |
} |
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
public class PontosEOnibusTask extends AsyncTask<Coordenada, ArrayList<Ponto>> implements LongRunningTask{ | |
private BusaoApplication application; | |
public PontosEOnibusTask(BusaoApplication application) { | |
//... | |
} | |
//... | |
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
public class TesteComparaClasses { | |
public static void main(String[] args) throws Exception { | |
// cria um novo classloader a partir da pasta bin | |
ClassLoader loader = new URLClassLoader(new URL[] { new URL("file:bin/") }, null); | |
// carrega a classe pelo novo classloader | |
Class<?> classe = loader.loadClass("br.com.caelum.fj91.classloader.teste.ObjetoTeste"); |
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
<persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" | |
version="2.0"> | |
<persistence-unit name="testes"> | |
<provider>org.hibernate.ejb.HibernatePersistence</provider> | |
<properties> | |
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
public class TestActivity extends Activity { | |
//... | |
public private boolean estaNaHorizontal() { | |
return getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE | |
&& getResources().getConfiguration().isLayoutSizeAtLeast( | |
Configuration.SCREENLAYOUT_SIZE_XLARGE); | |
} | |
} |