Skip to content

Instantly share code, notes, and snippets.

View jackboot7's full-sized avatar

Luis Alberto Santana jackboot7

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jackboot7 on github.
  • I am jackboot7 (https://keybase.io/jackboot7) on keybase.
  • I have a public key whose fingerprint is ABDC CB8B EC22 B72D 099F DF04 3AEC FDB1 42FA E6D5

To claim this, I am signing this object:

# -*-coding:utf-8 -*-
import pickles
import request
from cryptography.fernet import Fernet
# Instrucciones:
#
# Ejecutar el programa y enviar el resultado como "Asunto" a: lsantana@ambit.com.mx
(dp0\nS'message'\np1\nS'gAAAAABbrRoVAIZl4D9FghvTEWXu5Ij2-EWTrDAsQsy6tpoj0kd8HXjW89DER0HUZbQWdEoYhYAK4-r9jMz0n-rRs98iwAvNG-LcuulH8IyOwalvjcRh53bQJ0K-KSVNWPWogKsDM_v3'\np2\ns.
8prm5p6eeuiY_vHSGXmxIoYHQ13wsTeRqoO1n3udxDw=
import time
import sys
for progress in range(100):
time.sleep(0.1)
sys.stdout.write("Download progress: %d%% \r" % (progress) )
sys.stdout.flush()
# -*- coding: utf-8 -*-
import base64
import os
from django.conf import settings
from zeep import Client as ZeepClient
from suds.client import Client as SudsClient
from pac_gateway.cfd.models import Location
@jackboot7
jackboot7 / game_threes.py
Last active November 4, 2015 16:12
[2015-11-02] Challenge #239 [Easy] A Game of Threes
# -*- coding:utf8 -*-
# [2015-11-02] Challenge #239 [Easy] A Game of Threes
# https://www.reddit.com/r/dailyprogrammer/comments/3r7wxz/20151102_challenge_239_easy_a_game_of_threes/
def test_n(n):
if n % 3 == 0:
return 0
else:
if n % 3 == 1:
@jackboot7
jackboot7 / broken_keyboard.py
Created October 30, 2015 21:04
[2015-10-19] Challenge #237 [Easy] Broken Keyboard
# -*- coding:utf-8 -*-
# [2015-10-19] Challenge #237 [Easy] Broken Keyboard
# https://www.reddit.com/r/dailyprogrammer/comments/3pcb3i/20151019_challenge_237_easy_broken_keyboard/
def return_word(s, words):
s = set(s)
result = ''
for word in words:
if s.issuperset(word):
@jackboot7
jackboot7 / addcommas.py
Created October 30, 2015 16:15
FizzBuzz type problem: add commas to an integer.
from __future__ import division
def addcomas(n, sep=1000):
cad = ''
if n < sep:
return n
while(n > 0):
@jackboot7
jackboot7 / jsonmixin.py
Created August 15, 2014 16:03
Django JSON mixin for class based views
# -*- coding: utf-8 -*-
from django import http
from django.core import serializers
from django.utils import simplejson as json
class JSONResponseMixin(object):
"""
Mixin to send a json response. It serialize the context variable into
a JSON object which can be sent to the browser or used as a service.