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
package com.zaal.quiosque.test; | |
import android.test.ActivityInstrumentationTestCase2; | |
import com.zaal.quiosque.presenter.impl.AccessPresenter; | |
import com.zaal.quiosque.view.AccessViewInterface; | |
import com.zaal.quiosque.view.activity.AccessView; | |
public class AccessPresenterTest extends ActivityInstrumentationTestCase2<AccessView>{ | |
private AccessPresenter mPresenter; |
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
package com.squareup.okhttp.sample; | |
import com.google.gson.Gson; | |
import com.google.gson.reflect.TypeToken; | |
import com.squareup.okhttp.OkHttpClient; | |
import com.squareup.okhttp.Request; | |
import com.squareup.okhttp.Response; | |
import java.io.Reader; | |
import java.util.Collections; | |
import java.util.Comparator; |
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
package com.tassioauad.decisiontree; | |
public enum ComparisonOperator { | |
EQUAL_TO, NOT_EQUAL, GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN_OR_EQUAL_TO | |
} |
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
package com.tassioauad.decisiontree; | |
public class Attribute { | |
private String name; | |
private AttributeValueMatcher matcher; | |
public Attribute(String name, AttributeValueMatcher matcher) { | |
this.name = name; | |
this.matcher = matcher; |
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
@POST | |
@Consumes({"application/json"}) | |
public void create(Area area) { | |
} | |
@PUT | |
@Consumes({"application/json"}) | |
public void edit(Area area) { |
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 AnAsyncTask extends GenericAsyncTask<Void, Void, Entity[]> { | |
public AnAsyncTask(Context context) { | |
super(context); | |
} | |
@Override | |
protected AsyncTaskResult<Entity[]> doInBackground(Void... params) { | |
try { |
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" encoding="UTF-8"?> | |
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0"> | |
<persistence-unit name="NewPersistenceUnit"> | |
<provider>org.hibernate.ejb.HibernatePersistence</provider> | |
<class>br.com.projeto.v1.model.entity.MinhaEntidadeUm</class> | |
<class>br.com.projeto.v1.model.entity.MinhaEntidadeDois</class> | |
<properties> | |
<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/meubanco"/> | |
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/> |
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 | |
namespace Application\Validator; | |
use Application\Entity; | |
use Zend\Db\ResultSet\ResultSet; | |
use Zend\Db\Sql\Select; | |
use Zend\Db\Sql\Sql; | |
use Zend\Validator\Db\AbstractDb; | |
use Zend\Validator\Exception; | |
use Zend\Db\Adapter\Adapter; |
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 | |
namespace Application\Validator; | |
use Zend\Validator\AbstractValidator; | |
class CnpjValidator extends AbstractValidator | |
{ | |
const INVALID = "CNPJInvalido."; |
OlderNewer