Skip to content

Instantly share code, notes, and snippets.

View mferoc's full-sized avatar
🐧
statusless

Matheus Ferreira de Oliveira Costa mferoc

🐧
statusless
View GitHub Profile
@mferoc
mferoc / App.js
Last active March 8, 2020 18:53
Apps single screen simples feitos com react-native
/*
** Simples calculadora de imc feita com react-native
*/
import React, { Component } from "react";
import {
Platform,
StyleSheet,
TextInput,
Text,
TouchableOpacity,
@mferoc
mferoc / .editorconfig
Last active November 13, 2024 18:33
Config vscode environment for 42 school
root = true
[*]
indent_style = tab
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@mferoc
mferoc / files_42.c
Last active March 8, 2020 18:51
Utils for files manipulation in C
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* files.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mathferr <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/03/03 02:12:09 by mathferr #+# #+# */
/* Updated: 2020/03/03 02:12:10 by mathferr ### ########.fr */
/* */
String.prototype.equals = function(str) {return (this.toString() === str) ? true : false}
function igual(str1, str2) {
return str1.equals(str2);
}
@mferoc
mferoc / HelloWorld.java
Last active March 29, 2021 20:58
HelloWorld-em-c-java-python
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!!!");
}
}
@mferoc
mferoc / main.c
Last active May 28, 2021 02:09
exercise
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CHAR_LIMIT 30
typedef struct consumo
{
char nome[CHAR_LIMIT];
float tempo;
@mferoc
mferoc / FeedListUpdateEventTest.java
Created May 18, 2024 14:29
atividade-pos-ufscar-test-event.event
package de.danoeh.antennapod.event;
import org.junit.Assert;
import org.junit.Test;
import java.util.List;
import de.danoeh.antennapod.model.feed.Feed;
public class FeedListUpdateEventTest {
@mferoc
mferoc / DownloadErrorTest.java
Last active May 18, 2024 15:03
atividade-pos-ufscar-test-de.danoeh.antennapod.model.download
package de.danoeh.antennapod.model.download;
import org.junit.Assert;
import org.junit.Test;
public class DownloadErrorTest {
@Test
public void test_DownloadError_retorna_codigo_sucesso() {
var successCode = DownloadError.SUCCESS.getCode();