Skip to content

Instantly share code, notes, and snippets.

View demacdolincoln's full-sized avatar

Lincoln de Macêdo demacdolincoln

  • Brasil
View GitHub Profile
@demacdolincoln
demacdolincoln / fractal.ipynb
Created August 28, 2018 07:29
a simple exemple ~> mandelbrot fractal
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@demacdolincoln
demacdolincoln / simple_linear_regression-julia.ipynb
Created September 9, 2018 03:47
simples regressão linear em Julia
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@demacdolincoln
demacdolincoln / word2vec.ipynb
Last active September 23, 2018 20:35
word2vec
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@demacdolincoln
demacdolincoln / CNN.py
Created January 11, 2019 16:33
simple pytorch cnn
class CNN(nn.Module):
def __init__(self):
super(CNN, self).__init__()
self.conv1 = nn.Sequential(
nn.Conv2d(1, 16, 5, stride=2),
nn.ReLU(),
nn.MaxPool2d(kernel_size=2)
)
self.conv2 = nn.Sequential(
nn.Conv2d(16, 32, 5, stride=2),
@demacdolincoln
demacdolincoln / copy-of-tensorboard-fastai.ipynb
Created February 1, 2020 06:00
Copy of tensorboard-fastai.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@demacdolincoln
demacdolincoln / simple_example_rnn_regression_time_serie.ipynb
Created February 6, 2020 04:01
simple_example_rnn_regression_time_serie.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function fish_prompt
###################################################################
# cuidando das variaveis de ambiente #
###################################################################
set -g VIRTUAL_ENV_DISABLE_PROMPT true # para nao aparecer a notificacao padrao do venv e do virtualenv
set -g __fish_git_prompt_show_informative_status 1
set -g __fish_git_prompt_hide_untrackedfiles 1

no ~/.config/sway/config:

bindsym $mod+F11 exec fish -c "get_pass_passwd"
bindsym $mod+F12 exec fish -c "get_pass_otp"

a ideia:

  1. wl-copy -o faz com que o conteúdo copiado seja usado apenas 1 vez, e depois que copia o nome de usuário ou email, o -f faz esperar pelo uso do que foi copiado para seguir o resto das instruções, então automaticamente copia o nome de usuário e depois a senha, ambos sendo usados apenas 1 vez.