Skip to content

Instantly share code, notes, and snippets.

View JoaoGFarias's full-sized avatar
🏠
Working from home

João Farias JoaoGFarias

🏠
Working from home
View GitHub Profile
@JoaoGFarias
JoaoGFarias / login.feature
Last active April 3, 2023 10:34
Login scenario
Scenario: I perform the login
When Perform login
@JoaoGFarias
JoaoGFarias / vscodeconfig
Created May 15, 2020 14:52
VS Code confgi
.
@JoaoGFarias
JoaoGFarias / error.sh
Created December 19, 2018 18:08
error.sh
➜ digital-toys-web-application git:(master) sh startDt.sh
2018-12-19 19:06:03.767:INFO::main: Logging initialized @1117ms
2018-12-19 19:06:03.773:INFO:oejr.Runner:main: Runner
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.eclipse.jetty.util.BufferUtil (file:/host/GitHub/digital-toys-web-application/jetty-runner.jar) to field java.nio.MappedByteBuffer.fd
WARNING: Please consider reporting this to the maintainers of org.eclipse.jetty.util.BufferUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2018-12-19 19:06:03.995:INFO:oejs.Server:main: jetty-9.3.7.v20160115
2018-12-19 19:06:13.381:INFO:/:main: No Spring WebApplicationInitializer types detected on classpath
@JoaoGFarias
JoaoGFarias / response.json
Last active January 23, 2020 23:01
RSTA - response
{
"responses": [
{
"source": "miscellaneous",
"type": "single-word-subject",
"field": "subject",
"start": 0,
"end": 4,
"weight": 1,
"message": "This is a single word subject line. These tend to be vague. Will this help a recipient to decide what to do with this message?",
@JoaoGFarias
JoaoGFarias / PalindromeCheckerTest.java
Last active November 7, 2019 12:27
Palindrome TDD
public class PalindromeCheckerTest
{
@Test
public void checkTruePalindrome()
{
Boolean result = new PalindromeChecker().isPalindrome("abba");
assertEquals("The true palindrome was not detected", result, true);
}
@Test
@JoaoGFarias
JoaoGFarias / trump_finder.py
Created October 22, 2019 10:42
trump_finder.py
for word in words:
timestamp_list.add(timestamps.find_time_stamp_with(word))
for timestamp in timestamp_list:
list_of_short_videos.add(videos.extract_shorttime_at(timestamp))
final_video = list_of_short_videos.glueAll()
@JoaoGFarias
JoaoGFarias / error.sh
Created January 19, 2019 13:18
LibreOffice Error
Jan 19, 2019 2:17:31 PM org.pentaho.reporting.libraries.base.boot.AbstractBoot start
INFO: LibSerializer 1.1.6.10682 started.
Jan 19, 2019 2:17:32 PM org.pentaho.reporting.libraries.base.boot.AbstractBoot start
INFO: LibBase 1.1.6.10682 started.
Jan 19, 2019 2:17:32 PM org.pentaho.reporting.libraries.base.boot.AbstractBoot start
INFO: LibLoader 1.1.6.10682 started.
Jan 19, 2019 2:17:32 PM org.pentaho.reporting.libraries.base.boot.AbstractBoot start
INFO: LibRepository 1.1.6.10682 started.
Jan 19, 2019 2:17:32 PM org.pentaho.reporting.libraries.base.boot.AbstractBoot start
INFO: LibFonts 1.1.6.10682 started.
@JoaoGFarias
JoaoGFarias / anonymousClass.php
Last active May 29, 2018 18:51
PHP 7 Anonymous Classes
<?php
abstract class AbstractClass { // Could be an interface
public function concentreMethod()
{
echo('I am a concrete method which will not be overwritten');
}
public function otherConcentreMethod()
{
* Para cada extrator
* Para cada página do site do extrator em questão
* Alimentar o extrator com a página, registrando a tupla (classe_da_página, extraiu?)
* Após todas as páginas, calcular precisão, recall e acurácia
* Printar métricas de cada extrator
2017-10-10 03:19:09 [scrapy.core.engine] INFO: Closing spider (closespider_pagecount)
2017-10-10 03:19:09 [scrapy.core.engine] DEBUG: Crawled (200) <GET https://www.brandsmartusa.com/samsung/215588/galaxy+j7+prime+smartphone.htm> (referer: None) ['cached']
<extractor.BrandsMartUSAExtractor.BrandsMartUSAExtractor object at 0x10f559ac8>
name: Galaxy J7 Prime 5.5", 8MP Rear/5MP Front Camera, Octa Core Processor, 16GB Memory, 3GB RAM, 3300 mAh Battery, Android 6.0.1 Marshmallow Smartphone - Gold
model:
price: $149.00
brand: Samsung
OS: Android 6.0 "Marshmallow"
color: Gold
network: MetroPCS