Skip to content

Instantly share code, notes, and snippets.

View ForceTower's full-sized avatar
😋
Legendary nice meme

João Sena ForceTower

😋
Legendary nice meme
  • Feira de Santana
View GitHub Profile
%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
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"
{
"backdrop_path": "/gX8SYlnL9ZznfZwEH4KJUePBFUM.jpg",
"created_by": [
{
"id": 9813,
"name": "David Benioff",
"gender": 2,
"profile_path": "/8CuuNIKMzMUL1NKOPv9AqEwM7og.jpg"
},
{
{
"_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,
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;
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 (
@ForceTower
ForceTower / article_dao.dart
Created May 8, 2020 23:11
Fetch relations using floor
@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();
<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"
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) {
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;