Skip to content

Instantly share code, notes, and snippets.

View hamstah's full-sized avatar

Nico Esteves hamstah

View GitHub Profile
@hamstah
hamstah / Iam
Created September 26, 2019 15:49
https://docs.google.com/presentation/d/1n0OatT5qnC1Ef82Q4sIVmxxCgVBUDmo6Wcg9CFgWqf0/edit?usp=drivesdk
hVk......................................................................................................................
wVu......Vw..............................................................................................................
........Cu...............................................................................................................
........eYeYe............................................................................................................
........J...J.Vh.........................................................................................................
......xVe..Fe0k..........................................................................................................
............Y.J..........................................................................................................
.............ik..........................................................................................................
...........yVj..................................
hV5......................................................................
wV7......Vw..............................................................
........C7...............................................................
........1Y1Y1............................................................
........J...J............................................................
......xV1..F10...........................................................
............Y.Vh.........................................................
.............i5..........................................................
...........yV3...........................................................
.........................................................................
.........................................................................................................
...................................#####.##abc#..........................................................
.w0O..s0O..o0O.i1O..e1O..a1O.......#111#..#def#..........................................................
.aV1..bV1..cV1.dV0..eV1..fV1.......#011#..#ghj#..........................................................
.w0O..s0O..o0O.....................#000#.................................................................
.gV0..hV0..iV0.....................#####.#...............................................................
.........................................................................................................
.........................................................................................................
.....#.tot.=.abcdfghi#...................................................................................
......................................................................
from requests import Session # pip install requests
from signalr import Connection # pip install signalr-client
def handle_received(**kwargs):
print('received', kwargs)
def print_error(error):
print('error: ', error)

Keybase proof

I hereby claim:

  • I am hamstah on github.
  • I am hamstah (https://keybase.io/hamstah) on keybase.
  • I have a public key ASBAKjlf0mE3yMFc2JAyvy7wIkFTqHAnN3mMzomyfbFz0Ao

To claim this, I am signing this object:

from .common import DeclarativeBase, BaseModel
from .columns import (UUIDColumn,
BalanceColumn,
TimestampColumn,
CurrencyColumn,
TimestampColumn,
BalanceColumn,
UUIDColumn,
AccountTypeColumn,
import sys
import os
import re
import math
from flask import Flask, render_template, request, abort
app = Flask(__name__)
name = "'; DROP USERS; --"
@hamstah
hamstah / gist:3496748
Created August 28, 2012 09:56
Tags and notes from a document id
from mendeley_client import *
mendeley = create_client()
# create a test document
response = mendeley.create_document(document={'notes':'notes','tags':['tag1', 'tag2'],'type' : 'Book','title': 'Document creation test', 'year': 2008})
document_id = response['document_id']
# get notes and tags from a document id
details = mendeley.document_details(document_id)
@hamstah
hamstah / generate-links-from-db.py
Created February 21, 2012 12:06
Generate links for mendeley