Skip to content

Instantly share code, notes, and snippets.

View jwestarb's full-sized avatar

Julio Cesar Westarb Junior jwestarb

  • Blumenau/SC/Brasil
View GitHub Profile
#!/usr/bin/env python3
#coding=utf-8
import serial
import time
import struct
from pymongo import MongoClient
from datetime import datetime
class BTPOWER:
@jwestarb
jwestarb / react_start_project.md
Last active February 23, 2020 20:40
Init React Web project without pwa

yarn create react-app nome_do_projeto

rm README.md rm public/manifest.json rm public/logo192.png rm public/logo512.png rm src/App.css rm src/App.test.js rm src/index.css rm src/logo.svg

@jwestarb
jwestarb / semantic-commit-messages.md
Created January 27, 2020 16:37 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@jwestarb
jwestarb / dbf2oracle.py
Created August 23, 2019 08:01
Script python load DBF file do Oracle Table
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
dbf2oracle - convert dbf files into Oracle database
Todo:
- -v --verbose option
- handle existing table (-f option?)
- primary key option? (make first column primary key)
@jwestarb
jwestarb / interval_runner.py
Created August 23, 2019 07:55
Python Interval Runner
from threading import Thread
from time import sleep
class IntervalRunner(Thread):
def __init__(self, interval, function, *args, **kwargs):
Thread.__init__(self)
#super(self, IntervalRunner).__init__(self)
self.interval = interval
self.function = function
@jwestarb
jwestarb / use_python_venv.bat
Last active July 21, 2019 13:53
Python 3 virtual env on Windows
py -2 -V
py -3 -V
# Use python 3
python -m venv ./venv
# activate Venv
venv\Scripts\activate.bat
# deactivate Venv