Skip to content

Instantly share code, notes, and snippets.

@ssebastianj
ssebastianj / argentina_en_python_nea.md
Last active June 2, 2016 00:33
Argentina En Python: NEA

Sprint

Un sprint consiste en juntarse a programar con el objetivo de empujar un proyecto ya existente y trabajar en equipo para arreglar la mayor cantidad de bugs posible o agregar alguna funcionalidad. Es un evento informal del que cualquiera puede participar sin tener conocimiento alguno. La idea es ayudarnos entre todos y programar en equipo.

Fecha tentativa Lugar
17 de Enero de 2015 Café Martínez (Güemes 425)

Lugares tentativos (llamar para confirmar):

var mensaje = '01000110 01100101 01101100 01101001 01111010 00100000 01100011 01110101 01101101 01110000 01101100 01100101 00100000 01110011 01100101 01100010 01100001';
console.log(mensaje.split(' ').map(function(e) { return String.fromCharCode(parseInt(e, 2)); }).join(''));
# -*- coding: utf-8 -*-
from django.shortcuts import redirect
def redirect_if_logged(f=None, redirect_to_url=None):
def _decorator(view_func):
def _wrapped_view(request, *args, **kwargs):
if request.user.is_authenticated():
redirect_url = redirect_to_url
#!/usr/bin/env python
#! -*- coding: utf-8 -*-
from __future__ import print_function
msg = "71 75 65 20 61 6c 20 70 65 64 6f 20 65 73 74 61 73 20 70 61 72 61 20 64 65 73 63 69 66 72 61 72 20 65 73 74 6f 21 20 6a 61 6a 61 6a 61 6a"
for car in msg.split():
print(chr(int(car, 16)))
@ssebastianj
ssebastianj / blink_options.sh
Last active December 11, 2015 20:28
Beginning with Ash (Busybox). This is a "Quick & Dirty" (yep, I'm "learning") script for blinking QSS LED when it reaches every "min" value on "/etc/config/system" file. Firmware: OpenWRT | Gargoyle. Hardware: TP-LINK WR1043ND (with little changes it can be ported to another routers).
@ssebastianj
ssebastianj / seguimiento_correo_oca.py
Created January 28, 2013 12:18
Dado un código de seguimiento, obtiene los detalles del envío mediante OCA©.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Sebastián J. Seba
import requests
from BeautifulSoup import BeautifulSoup
def get_tracking_info(tracking_code):
@ssebastianj
ssebastianj / deadlock.py
Created July 22, 2012 20:34
Script que simula el Algoritmo del Banquero para asignar recursos en un Sistema Operativo
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Sebastián J. Seba
import itertools
class DeadLock(object):
def __init__(self, asignados, maximos, disponible):
@ssebastianj
ssebastianj / 98262.user.js
Last active March 28, 2017 03:00
Script para mostrar información ampliada sobre los exámenes tales como promedios generales, aplazos, ausentes y más.
// ==UserScript==
// @name UTN FRRe: SysAcad - Extra Info Exámenes
// @namespace http://sysacadweb.frre.utn.edu.ar
// @author Sebastián J. Seba
// @version 1.3.0
// @description Muestra información ampliada sobre los exámenes tales como promedios generales, aplazos, cantAusentes y más.
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @include http://sysacadweb.frre.utn.edu.ar/examenes.asp
// @include http://sysacadweb.frre.utn.edu.ar/examenes.asp?id=*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js