Skip to content

Instantly share code, notes, and snippets.

View btall's full-sized avatar

Babacar T. btall

View GitHub Profile
@btall
btall / keybase.md
Created March 30, 2021 19:42
keybase.md

Keybase proof

I hereby claim:

  • I am btall on github.
  • I am btall (https://keybase.io/btall) on keybase.
  • I have a public key ASBE6bpftY5_YjTW2vh1okNiRKiYMVOU1oSh-114NGGoVQo

To claim this, I am signing this object:

@btall
btall / colander_empty_mappingschema_doesnt_works.py
Created May 26, 2017 14:46
colander empty mappingschema doesn't works
#!/usr/bin/env python
from __future__ import print_function
import sys
import colander
person_1 = {
'firstname': 'foo',
'lastname': 'bar',
@btall
btall / colander_workaround_empty_mappingschema.py
Created May 26, 2017 14:44
colander workaround for the empty MappingSchema
#!/usr/bin/env python
from __future__ import print_function
import sys
import colander
from contextlib import contextmanager
person_1 = {
if !filereadable($HOME.'/.vim/autoload/plug.vim')
!curl -fLo ~/.vim/autoload/plug.vim --create-dirs 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
source $MYVIMRC
endif
call plug#begin('~/.vim/plugins')
Plug 'airblade/vim-gitgutter'
Plug 'aonemd/kuroi.vim'
Plug 'dense-analysis/ale'
Plug 'jeffkreeftmeijer/vim-numbertoggle'
@btall
btall / AESCipher.py
Last active January 13, 2021 02:06 — forked from crmccreary/AESCipher.py
Encryption using pycrypto, AES/ECB/PKCS5Padding
from Crypto.Cipher import AES
from Crypto import Random
BS = 16
pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS)
unpad = lambda s: s[0:-ord(s[-1])]
class AESCipher:
def __init__(self, key):