Skip to content

Instantly share code, notes, and snippets.

@Logic-gate
Logic-gate / HabibLabReport.py
Created November 22, 2015 17:53
Habib LabReport CLI: This is a reversed engineered program designed to aid registered patients with their personal lab results. It uses the same service that Dr. ALHABIB (Android APP/WSDL) does with the exception of limitation; it will only display your lab results.
#!/usr/bin/env python
# HabibLabReport.py V 0.1 - Habib LabReport CLI
# Copyright (C) <2014> mad_dev(A'mmer Almadani)
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
'''
redoxygen is a bulk sms gateway. https://www.redoxygen.net
Their developer's page lacks a python example...here it is.
'''
def sms(message, number):
url = 'http://www.redoxygen.net/sms.dll?Action=SendSMS&'
param = {}
param['AccountId'] = ''
@Logic-gate
Logic-gate / Flask-RECAPTCHA.py
Last active November 22, 2015 17:50
Flask-RECAPTCHA
#Simple example for using wtf-Flask's RECAPTCHA widget.
#APP.py
from flask import Flask, request, render_template
from flask.ext.wtf import Form
from flask.ext.wtf.recaptcha import RecaptchaField
from wtforms.fields import StringField
from wtforms.validators import DataRequired
### Keybase proof
I hereby claim:
* I am logic-gate on github.
* I am mad_dev (https://keybase.io/mad_dev) on keybase.
* I have a public key whose fingerprint is 22F3 BEA2 7382 C170 8AA2 2FCE 73E6 908B DEB4 FEB3
To claim this, I am signing this object: