Skip to content

Instantly share code, notes, and snippets.

View schleumer's full-sized avatar
🔝
Writing bad code.

Wesley Schleumer de Góes schleumer

🔝
Writing bad code.
View GitHub Profile
import glob2
import os
import re
from shutil import copyfile
fileregex = r'.*\.(avi|mp4|mkv)$'
srtregex = r'.*\.(srt)$'
def ffmpeg(filename):
file = os.path.abspath(filename)

Keybase proof

I hereby claim:

  • I am schleumer on github.
  • I am wesleyschleumer (https://keybase.io/wesleyschleumer) on keybase.
  • I have a public key whose fingerprint is 2810 C357 8EE1 E76B CD98 5ADE 4869 1412 7153 61D5

To claim this, I am signing this object:

in this case the structure of the Relation goes like this:

Relation[<Entity type>, <Intermediate data-structure type that contains both: entity with ID and the relation ID that was used to load it >, <Relation ID>](<arbitrary relation name>, <intermediate data-structure> ⇒ <list of relation IDs>, <intermediate data-structure> ⇒ <entity>)

Since your are representing many-to-many relation, this would be the correct one:

val featuresByProductId = Relation[Feature, (Seq[Long /* ← this long is a product Id */], Feature), Long /* ← this long is a product Id */]("featuresByProductId", _._1, _._2)

// or
Host gitlab.com
HostName gitlab.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/personalid
Host ironsystems
HostName gitlab.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa

Keybase proof

I hereby claim:

  • I am schleumer on github.
  • I am wesleyschleumer (https://keybase.io/wesleyschleumer) on keybase.
  • I have a public key whose fingerprint is 8BBA 5D23 039E BAB4 529B 9C34 B208 4ACA 0D3B E282

To claim this, I am signing this object:

Linguagem X vs Linguagem Y

Se você tem duvida entre uma linguagem e outra porque você não tem conhecimento na área, eu te perdoo, é normal, mas se você já é da área e tem essa duvida, nunca é tarde pra desistir.

Se você tá procurando uma linguagem pra entrar no mercado de trabalho, olhe o site: https://www.glassdoor.com/index.htm, Glass Door é sempre um resumo do mercado de trabalho internacional, olhe o: https://trends.google.com/trends/, o Google Trends resume como anda a popularidade de uma linguagem de acordo com o quanto as pessoas buscam sobre elas, olhe o: http://stackoverflow.com/, no Stack Overflow você já começa a entrar em termos técnicos e vai começar a entender os problemas que as pessoas normalmente possuem nessas linguagens e o quanto de suporte da comunidade elas possuem.

call plug#begin('~/.vim/plugged')
Plug 'fatih/vim-go'
Plug 'StanAngeloff/php.vim'
Plug 'altercation/vim-colors-solarized'
Plug 'scrooloose/nerdtree'
Plug 'wakatime/vim-wakatime'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'editorconfig/editorconfig-vim'
Plug 'posva/vim-vue'
function remove-docker-containers
echo "Stop running shit"
docker stop (docker ps -q)
echo "Remove the whale shit"
docker rm (docker ps -a -q)
end
function remove-docker-images
remove-docker-containers
[user]
email = wesley.schleumer@gmail.com
name = Wesley Schleumer
[svn]
rmdir = true
[core]
compression = 0
excludesfile = ~/.gitignore
packedGitLimit = 2047m
packedGitWindowSize = 2047m
@schleumer
schleumer / guardian_lexer.xrl
Last active June 5, 2016 04:01
Simple yecc and leex parser
Definitions.
WS = ([\000-\s]|%.*)
T_VAR = [A-Za-z\.\-]
Rules.
or : {token,{'T_OR',TokenLine,list_to_atom(TokenChars)}}.
and : {token,{'T_AND',TokenLine,list_to_atom(TokenChars)}}.
{T_VAR}+ : {token,{'T_VAR',TokenLine,TokenChars}}.
[()] : {token,{list_to_atom(TokenChars),TokenLine}}.