Skip to content

Instantly share code, notes, and snippets.

View Janderson's full-sized avatar

Janderson FFerreira Janderson

  • Python Developer
  • Porto Alegre - RS
View GitHub Profile
@Janderson
Janderson / dependencias.requirements.txt
Last active May 6, 2022 00:41
Treino - Python Fundamentos - Gerenciador Pacotes - PIP
pandas==1.4.1
pendulum
@Janderson
Janderson / xmind_to_csv.py
Last active April 22, 2022 21:43
XMind 8 to csv
import xml.etree.ElementTree as xmlET
import pandas as pd
import click
from zipfile import ZipFile
@click.group()
def cli():
pass
@Janderson
Janderson / remove a field elasticsearch
Created May 30, 2019 16:16
remove a field elasticsearch
GET /genesis_profit/_update_by_query
{
"script": "ctx._source.remove('GapPercentualDiario')",
"query": {
"bool": {
"must": [
{
"exists": {
"field": "GapPercentualDiario"
}
@Janderson
Janderson / gist:fc729b5d842f9c4653b908c2623c3a7a
Created May 9, 2019 12:34
remove scientific notation on pandas
import pandas as pd
pd.options.display.float_format = '{:,.2f}'.format
@Janderson
Janderson / gist:a21bf375ba22eec33241c363d71d1ca5
Created May 9, 2019 12:34
remove scientific notation on pandas
import pandas as pd
pd.options.display.float_format = '${:,.2f}'.format
@Janderson
Janderson / ShareAFolderWithWindowsUsingVirtualBox.me
Last active May 29, 2019 18:09
Docker share folder with windows using virtualbox
First using virtualbox interface, go to dockermachine usually it named as default, after that go to Shared Folders > Shared Folder Settings and share choose a folder into windows usually I choose my projects folder and choose a name [NameOfYourSharedFolder].
# create a volume into docker
docker volume create projects
# remove the old folder data
rmdir /mnt/sda1/var/lib/docker/volumes/projects/_data/
@Janderson
Janderson / gist:2341428
Created April 9, 2012 04:26
Integração do mail chimp com rails
Usando a gem https://github.com/chimpchamp/gibbon
seguintes passos adicional
> gb = Gibbon.new("130106ad3d03663dadc2fdc0a0d150c5-us4")
> gb.lists
{"total"=>1, "data"=>[{"id"=>"e2b771b034", "web_id"=>63249, "name"=>"teste", "date_created"=>"2012-04-09 03:41:42", "email_type_option"=>false, "use_awesomebar"=>true, "default_from_name"=>"teste1", "default_from_email"=>"[email protected]", "default_subject"=>"teste de grupo", "default_language"=>"en", "list_rating"=>0, "subscribe_url_short"=>"http://eepurl.com/kKPG1", "subscribe_url_long"=>"http://empresai.us4.list-manage2.com/subscribe?u=d982c93883cb9a49de816f58f&id=e2b771b034", "beamer_address"=>"ZDk4MmM5Mzg4M2NiOWE0OWRlODE2ZjU4Zi03N2YxY2EwNS00MDg2LTRlZmUtYTA5OC0xOGIzNDRhYjk1N2U=@campaigns.mailchimp.com", "stats"=>{"member_count"=>1, "unsubscribe_count"=>0, "cleaned_count"=>0, "member_count_since_send"=>1, "unsubscribe_count_since_send"=>0, "cleaned_count_since_send"=>0, "campaign_count"=>0, "grouping_count"=>0, "group_count"=>0, "merge_var_count"=>2, "av
@Janderson
Janderson / simple_web_browser_pythonqt.py
Created March 24, 2012 06:34
Simples WebBrowser python QT
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main.ui'
#
# Created: Sat Mar 24 03:20:20 2012
# by: pyside-uic 0.2.11 running on PySide 1.1.0
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui, QtWebKit
@Janderson
Janderson / gist:2148089
Created March 21, 2012 15:04
Install node.js + npm + hook.io on Ubuntu 11.10
cd /tmp
sudo apt-get update
sudo apt-get install git-core curl build-essential openssl libssl-dev apache2-utils g++
git clone https://github.com/joyent/node.git && cd node
git checkout v0.7.6
./configure
make
sudo make install
curl http://npmjs.org/install.sh | sudo sh