Skip to content

Instantly share code, notes, and snippets.

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

Dayanne Fernandes Dayof

🏠
Working from home
  • Landing AI
  • Anápolis, GO, Brasil
  • X @daayoff
View GitHub Profile

Instalar:

 $ sudo apt-get install tor privoxy -y
 $ pip install selenium

Executar:

@Dayof
Dayof / schedule_dvp_ieeeweek.md
Last active April 24, 2017 07:08
Agenda de atividades do DVP Nicolas Paez (IEEEWeek)
@Dayof
Dayof / webscraper.py
Created May 1, 2017 02:45
College Path using WebScraper
import requests
from bs4 import BeautifulSoup
base_url = 'https://matriculaweb.unb.br'
page_mw = requests.get(base_url + '/graduacao/fluxo.aspx?cod=1856')
courses, course, all_cred, all_pr, all_courses_names = ([], {}, [], [], [])
all_refs = {}
courses_not_updated = ['COMPUTACAO BASICA']
REMOVE_OUT_FLOW = True
# worst teacher means the last temporary assignment on the prefered
# list of the school
def worstTeacher(final_match, school, school_pref_list):
big_index = -1
index_to_look = [j[0] for j in final_match if j[1] == school]
for i in index_to_look:
ind = school_pref_list.index(i)
if ind > big_index:
big_index = ind
import toga
class StartApp(toga.App):
def startup(self):
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
outer_box = toga.Box()
box1 = toga.Box(children=[toga.Label('test')])
box2 = toga.Box(children=[toga.Label('split_container')])
@Dayof
Dayof / gsoc_proposal.md
Last active May 30, 2017 17:18
"Port Cricket to use Toga, instead of Tkinter" proposal for Google Summer of Code 2017.

"Port Cricket to use Toga, instead of Tkinter" proposal for Google Summer of Code 2017.

Table of content

  1. Abstract 1.1 Drawbacks of the existing GUI framework 1.2 Goals 1.3 Benefits
  2. The new framework 2.1 Overview 2.2 Advantages
  3. Schedule and milestones 3.1 Prepare the field 3.2 Port Cricket to use Toga 3.3 Usage documentation 3.4 If time permits...
  4. About me
import toga
class StartApp(toga.App):
def startup(self):
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
box1 = toga.Box(children=[toga.Label('test')])
box2 = toga.Box(children=[toga.Label('split_container')])
import toga
class StartApp(toga.App):
def startup(self):
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
main_content = toga.OptionContainer(content=[('b1', toga.Box()),
('b2', toga.Box())])
import toga
class StartApp(toga.App):
def startup(self):
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
right_box = toga.Box()
left_box = toga.Box()

Computer Society UnB

Chapter Material

Projects

Partners