Skip to content

Instantly share code, notes, and snippets.

View brenorb's full-sized avatar

Breno brenorb

View GitHub Profile
@brenorb
brenorb / test_TDD_pytest.py
Last active May 4, 2019 22:46
Python TDD with pytest. https://pytest.org
import twittter_main
# Execute Pytest in the cmd to assert the test.
def test_post_sem_usuario_sem_msg():
assert twittter_main.post('->') == 'Comando invalido!'
def test_post_sem_msg():
assert twittter_main.post("Alice ->") == "Post sem mensagem!"
@brenorb
brenorb / DateSync.bat
Created January 8, 2019 12:44
Syncs computer date and time. Must execute as admin.
net start w32time
w32tm /resync /force
net stop w32time
@brenorb
brenorb / download.sh
Created January 8, 2019 12:36
Shell script to update code in a double click.
#!/bin/sh
#Updates codes
#Author: Breno Brito
#Updated in 13/04/2018
export dir=$PWD
echo Updating website
echo
cd $dir/website