Skip to content

Instantly share code, notes, and snippets.

Raffael Tancman rtancman

Block or report user

Report or block rtancman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View consulta_cnj.py
#!/usr/bin/env python3
# para instalar as dependencias:
# python3 -m pip install zeep requests
from pathlib import Path
icp_cert_file_abs_path = str(Path(Path.home(), 'certs', 'icp_brasil_bundle.crt'))
print(icp_cert_file_abs_path)
import zeep # https://pypi.org/project/zeep/
@JoaoFelipe
JoaoFelipe / ComMatricula.ipynb
Last active Jun 16, 2017
Gerador de certificados PySE
View ComMatricula.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Install Telegram
#!/bin/sh
# telegram
wget https://updates.tdesktop.com/tlinux/tsetup.0.9.42.tar.xz
tar xvfJ tsetup.0.9.42.tar.xz
mv Telegram/ /opt/telegram
rm -rf tsetup.0.9.42.tar.xz
#telegram image
wget https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Telegram_logo.svg/128px-Telegram_logo.svg.png
View install_sublime_text.sh
#!/bin/sh
# Sublime Text 3 install with Package Control (last update: 25 September 2016)
#
# No need to download this script, just run it on your terminal:
#
# $ curl -L git.io/sublimetext | sh
# Detect the architecture
View crazy_sum.py
# Exemplo com closure
def crazy_sum():
acc = 0
def wrapped(t):
nonlocal acc
sum_with_acc = sum(t) + acc
acc = max(0, sum_with_acc - 9)
View git-useful.md

git-useful

a collection of useful commands to use Git and GitHub.

Add

add files interactively

git add <file> --patch

# working example
View install_sublime_text.sh
#!/bin/sh
# Sublime Text 3 Install (last update: Monday 13 March 2017)
#
# No need to download this script, just run it on your terminal:
#
# curl -L git.io/sublimetext | sh
# Detect the architecture
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@FSX
FSX / async_psycopg2.py
Created Mar 8, 2011
A module for asynchronous PostgreSQL queries in Tornado.
View async_psycopg2.py
#!/usr/bin/env python
__author__ = 'Frank Smit <frank@61924.nl>'
__version__ = '0.1.0'
import functools
import psycopg2
from tornado.ioloop import IOLoop, PeriodicCallback
You can’t perform that action at this time.