Skip to content

Instantly share code, notes, and snippets.

View marcomachado's full-sized avatar

Marco André Machado marcomachado

View GitHub Profile
@marcomachado
marcomachado / gist:6eef69bd90a60334697b47078e81dd58
Last active September 25, 2019 22:33
Testes com linearSVC
from sklearn.metrics import accuracy_score
from sklearn.svm import LinearSVC
from sklearn.model_selection import train_test_split
SEED = 10
train_x, test_x, train_y, test_y = train_test_split(x, y, random_state = SEED, test_size = 0.25, stratify = y)
modelo = LinearSVC()
modelo.fit(train_x, train_y)
@marcomachado
marcomachado / gist:3955e726c816070b7959af2b4d5a27fa
Created July 15, 2019 21:23
Como eu me mantenho organizado usando Trello, Kanban, GTD e Inbox Zero
source: http://alaniswright.com/blog/how-i-stay-organised-using-trello-kanban-gtd-and-inbox-zero/
Princípios
0) Produtividade é sobre produzir mais VALOR com a MESMA QUANTIDADE DE ESFORÇO
1) Preste atenção à saúde
2) Tenha planos de longo prazo
* eles permitem ter a confiança de que as atividades do dia a dia valem a pena serm feitas
* não devem ser planos extremamente detalhados: as circunstâncias e prioridades mudam
3) Faça algo que o motive
* "autonomy, mastery and purpose are the three main sources of motivation"
@marcomachado
marcomachado / respostas_slides.txt
Last active July 18, 2016 23:41
respostas.rst
135(10) = 10000111(2)
520(10) = 0000001000001000(2)
58(10) = 3A(16)
191(10) = BF(16)
2736(10) = AB0(16)
110101(2) = 53(10)
1011101(2) = 93(10)
10011011(2) = 155(10)
@marcomachado
marcomachado / material_ti.rst
Last active September 17, 2016 00:19
Material de Introdução a Tecnologia da Informação
@marcomachado
marcomachado / README.rst
Last active August 7, 2018 15:51
Trabalho Introdução a Informática
@marcomachado
marcomachado / eclise_flash_builder.txt
Last active August 29, 2015 14:27
Eclipse + Flash Builder 4.6 plugin
Procedimentos para instalação do plugin do Flash Builder 4.6 no Eclipse 3.7 (Indigo).
OBS.: Deve ser utilizado o eclipse 32 bits
O Flash Builder 4.6 suporta a instalação como plugin em uma versão do Eclipse instalada.
1) Primeiro é necessário completar a instalação do Flash Builder 4.6 e inserir seu serial
2) Navegue até o diretório de instalação e abra o diretório "Utilities"
3) Execute o programa Adobe Flash Builder 4.6 Plug-in Utility.exe
4) Selecione a linguagem
@marcomachado
marcomachado / monitor_commons_io.java
Last active April 11, 2023 18:31
Writing a simple file monitor in Java using Commons IO
Monitoring using Java 7: http://java.dzone.com/news/how-watch-file-system-changes
=============//==========
In this article I am going to show you how to write a simple file monitor. So even though Java 7 comes with a low-level API to watch for file system changes, fow now we will be using using the Commons IO library from the Apache Foundation, mainly the org.apache.commons.io.monitor package.
The first step will be to define the location that we are going to monitor. For this I’ve created a temporary folder of my desktop, and defined a String constant pointing to that newly created location:
The first step will be to define the location that we are going to monitor. For this I’ve created a temporary folder of my desktop, and defined a String constant pointing to that newly created location:
public static final String FOLDER =
@marcomachado
marcomachado / git básico
Last active December 9, 2015 19:18
básico de git
Global setup:
Download and install Git
git config --global user.name "Your Name"
git config --global user.email {username}@gmail.com
Next steps:
mkdir projectname
cd projectname