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
%Valores Tabelados | |
x = [0.5 1 2 3 4 5 6 7 9]'; | |
y = [6 4.4 3.2 2.7 2 1.9 1.7 1.4 1.1]'; | |
%Variavel para facilitar no uso do numero de euler | |
e = exp(1); | |
%Equacao eh: | |
%P(t) = Ae^-1.5t + Be^-0.3t + Ce^-0.05t | |
%Valor dos coeficientes em T = 0??? | |
%Criacao da Matriz Z |
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
compile 'com.squareup.picasso:picasso:2.5.2' | |
compile 'com.google.code.gson:gson:2.8.2' | |
compile 'com.squareup.okhttp3:okhttp:3.9.0' | |
compile 'com.android.support:design:26.1.0' | |
implementation "android.arch.lifecycle:extensions:1.1.0" | |
implementation "android.arch.lifecycle:common-java8:1.1.0" | |
implementation "android.arch.persistence.room:runtime:1.0.0" | |
annotationProcessor "android.arch.persistence.room:compiler:1.0.0" |
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
{ | |
"backdrop_path": "/gX8SYlnL9ZznfZwEH4KJUePBFUM.jpg", | |
"created_by": [ | |
{ | |
"id": 9813, | |
"name": "David Benioff", | |
"gender": 2, | |
"profile_path": "/8CuuNIKMzMUL1NKOPv9AqEwM7og.jpg" | |
}, | |
{ |
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
{ | |
"_id": "5256c89f19c2956ff6046d47", | |
"air_date": "2011-04-17", | |
"air_year": "2011", | |
"main_cast": "Sean Bean, Michelle Fairley, Emilia Clarke", | |
"min_age": 16, | |
"episodes": [ | |
{ | |
"air_date": "2011-04-17", | |
"episode_number": 1, |
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 jpssena.problem; | |
import org.uma.jmetal.problem.impl.AbstractBinaryProblem; | |
import org.uma.jmetal.solution.BinarySolution; | |
import org.uma.jmetal.solution.impl.DefaultBinarySolution; | |
import weka.classifiers.Evaluation; | |
import weka.classifiers.functions.MultilayerPerceptron; | |
import weka.classifiers.lazy.IBk; | |
import weka.core.Instances; |
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
fun main() { | |
val field = GameField("Brazil", 80) | |
val grass = GrassGameFieldDecorator(field) | |
val wood = WoodGameFieldDecorator(grass) | |
println("Maintenance started on ${wood.location} that has ${wood.size} km²") | |
wood.maintain() | |
} | |
open class GameField ( |
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
@Query('SELECT * FROM article ORDER BY publishedAt DESC') | |
Stream<List<Article>> getAllArticles(); | |
@Query('SELECT Author.*, _junction.articleId as articleId FROM ArticleAuthor AS _junction inner join Author ON (_junction.authorId = Author.id) WHERE _junction.articleId IN (:ids)') | |
Future<List<AuthorArticleId>> getAuthorsFromArticles(List<int> ids); | |
Stream<List<ArticleWithAuthor>> getAllArticlesWithAuthors() { | |
final stream = getAllArticles(); | |
final controller = StreamController<List<ArticleWithAuthor>>.broadcast(); |
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
<androidx.coordinatorlayout.widget.CoordinatorLayout | |
android:id="@+id/root_view" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".ui.MainActivity"> | |
<fragment | |
android:id="@+id/fragment_container" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" |
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 io.flutter.plugins.videoplayer; | |
import com.google.android.exoplayer2.upstream.DataSource; | |
import com.google.android.exoplayer2.upstream.crypto.AesCipherDataSource; | |
public class AESCipherDataSourceFactory implements DataSource.Factory { | |
private final DataSource source; | |
private final String secret; | |
public AESCipherDataSourceFactory(DataSource source, String secret) { |
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 javax.crypto.Cipher; | |
import javax.crypto.NoSuchPaddingException; | |
import javax.crypto.ShortBufferException; | |
import javax.crypto.spec.IvParameterSpec; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.nio.ByteBuffer; | |
import java.security.InvalidAlgorithmParameterException; | |
import java.security.InvalidKeyException; | |
import java.security.NoSuchAlgorithmException; |
OlderNewer