Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

João Farias JoaoGFarias

🏠
Working from home
Block or report user

Report or block JoaoGFarias

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JoaoGFarias
JoaoGFarias / error.sh
Created Jan 19, 2019
LibreOffice Error
View error.sh
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.
View 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 / anonymousClass.php
Last active May 29, 2018
PHP 7 Anonymous Classes
View anonymousClass.php
<?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()
{
View gist:17cc58401012aa3fa656c379d7e7f266
* 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
View gist:61602f8f68e57e686f96b800517039dd
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
View postman_workshop_CESAR_2017.json
{
"variables": [],
"info": {
"name": "Postman Workshop",
"_postman_id": "340162d5-d5cb-adf5-5920-405c041a2280",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
@JoaoGFarias
JoaoGFarias / select_works.py
Created Jul 16, 2017
ScriptLattes Analysis
View select_works.py
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
import csv
import re
import string
import yaml
def save_new_authors(authors, file_title='new_authors_list.txt'):
authors.sort()
with open(file_title, mode='w+') as file_handler:
@JoaoGFarias
JoaoGFarias / crawler.py
Last active Jul 29, 2017
Filmow comments crawler
View crawler.py
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import csv
import json
# Execution:
# Run: pip install selenium
# Fill in the following 4 variables with the necessary data
@JoaoGFarias
JoaoGFarias / Client.rb
Last active Dec 18, 2015
Example of Test-Driven testing in Ruby
View Client.rb
admin1 = User.getUserInfo("admin1")
puts admin1["email"] # -> Prints admin1@email.com
user1 = User.getUserInfo("user_1")
puts user1["email"] # -> Prints user1@email.com
wrongPasswordForUser1 = user1["password"] + "Sufix to break password"
You can’t perform that action at this time.