This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import argparse | |
| from HTMLParser import HTMLParser | |
| from datetime import datetime | |
| from BeautifulSoup import BeautifulSoup | |
| from prettytable import PrettyTable | |
| import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Trackeo internacional | |
| $ python correo.py RGxxx606xxxDE | |
| Buscando información para: RGxxx606xxxDE ... | |
| +-------------------+-----------+--------------------+------------------------------------------+--------+--------+ | |
| | Fecha | País | Oficina | Evento | Motivo | Acción | | |
| +-------------------+-----------+--------------------+------------------------------------------+--------+--------+ | |
| | 13-Dec-2013 11:07 | GERMANY | | Receive item from customer (Otb) | | | | |
| | 16-Dec-2013 12:08 | GERMANY | | Insert item into bag (Otb) | | | | |
| | 17-Dec-2013 07:00 | GERMANY | | Send item abroad (EDI-received) | | | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .vimrc | |
| ------ | |
| syntax on | |
| set tabstop=4 | |
| set softtabstop=4 | |
| set shiftwidth=4 | |
| set expandtab | |
| set autoindent | |
| set ruler | |
| set hlsearch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| from decimal import Decimal | |
| from fractions import Fraction | |
| try: | |
| entrada = raw_input | |
| except: | |
| entrada = input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| from decimal import Decimal | |
| from fractions import Fraction | |
| from lineal import numero | |
| try: | |
| entrada = raw_input | |
| except: | |
| entrada = input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DEVICE=eth0.2 | |
| INPUT_SPEED=9600kbit | |
| OUTPUT_SPEED=960kbit | |
| interface $DEVICE world-in input rate $INPUT_SPEED #balanced | |
| class interactive commit 20% | |
| match udp sport 53 | |
| match tcp port 22 | |
| match icmp | |
| match tcp sports 5222,5228 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Traemos los heads y creamos un branch develop desde origin/develop (lo ejecutamos la primera vez). | |
| $ git fetch origin | |
| $ git checkout -b develop origin/develop | |
| ** Las proximas veces, como ya tenemos el branch develop localmente, siempre antes de crear un branch para un ticket nuevo corremos (parados en el branch develop): | |
| $ git fetch origin | |
| $ git pull | |
| Creamos el branch del ticket, con su número y título. | |
| $ git branch feature/Tnumber_ticket_title |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Route = function(data) { | |
| this.id = data.id; | |
| this.waypoints = data.waypoints; | |
| this._L_LatLng_list; | |
| this._L_Polyline_obj; | |
| }; | |
| Route.prototype._fill_L_LatLng = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from random import randint | |
| import time | |
| from django.db import transaction | |
| from mobile.models import Mobile, Phone, Handy, Tablet, MobileNetwork | |
| from asset.models import Asset | |
| ROWS = 1000 | |
| @transaction.atomic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import curses | |
| from time import sleep | |
| from random import randint | |
| myscreen = curses.initscr() | |
| MAX_RPM = 6500 | |
| EMPTY = chr(9617) | |
| FULL = chr(9619) | |
| SPEED = ((0, 0), (1,20), (21,40), (35, 60), (50, 90), (60, 145)) |