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
| Requiere que exista el paquete | |
| /usr/bin/dialog | |
| apt-cache search ^dialog | |
| dialog - Muestra cajas de diálogo amigables desde scripts de consola | |
| para ejecutar | |
| git clone https://gist.github.com/6174258.git ciclo_vida_andres |
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
| #!/bin/bash | |
| # Daniel Verner | |
| # CarrotPlant LLC | |
| # 2011 | |
| # Backup each mysql databases into a different file, rather than one big file | |
| # Optionally files can be gzipped (dbname.gz) | |
| # | |
| # Usage: dump_all_databases [ -u username -o output_dir -z ] | |
| # | |
| # -u username to connect mysql server |
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
| def clean_password2(self): | |
| import string | |
| password1 = self.cleaned_data.get("password1", "") | |
| password2 = self.cleaned_data["password2"] | |
| if password1 != password2: | |
| raise forms.ValidationError(_("The two password fields didn't match.")) | |
| if len(password2) <6: | |
| raise forms.ValidationError(_("The password must be almost 6 chars")) | |
| digits, chars, punt = set(), set(), set() |
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
| <div class="pagination pagination-centered"> | |
| <ul> | |
| {% if page_obj.has_previous %} | |
| <li class="prev"> | |
| <a href="{{url_suffix|default:"?page="}}{{page.previous_page_number}}">{{previous_label|default:"← Previous"}}</a> | |
| </li> | |
| {% else %} | |
| <li class="prev disabled"> | |
| <a href="#">{{previous_label|default:"← Previous"}}</a> | |
| </li> |
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
| if (!window.console) { | |
| window.console = { | |
| log: function() {}, | |
| error: function() {}, | |
| info: function() {}, | |
| warn: 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
| import sys | |
| from gi.repository import Gtk, Gdk, GdkPixbuf | |
| from gi.repository import Granite | |
| class DemoApp(Granite.Application): | |
| application_id="demo.granite.org" | |
| program_name="Granite Demo" | |
| app_years= "2012" | |
| build_version="1.0" | |
| main_url = "https://launchpad.net/granite"; |
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
| MySQL-python==1.2.4b2 | |
| PyWebDAV==0.9.8 | |
| cdecimal==2.3 | |
| distribute==0.6.28 | |
| lxml==2.3.6 | |
| polib==1.0.1 | |
| psycopg2==2.4.5 | |
| pyOpenSSL==0.13 | |
| pydot==1.0.28 | |
| pyparsing==1.5.6 |
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 random | |
| def get_near_point( lat,lng, radius): | |
| """ http://gis.stackexchange.com/questions/25877/how-to-generate-random-locations-nearby-my-location""" | |
| import math | |
| u = random.random() | |
| v = random.random() | |
| r_d = radius/111300.0 | |
| t = 2* math.pi*v | |
| w = r_d * math.sqrt(u) | |
| x = w* math.cos(t) |
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
|  | |
| Software libre para empresas | |
| ---------------------------- | |
| _por @zodman_ | |
| ! | |
| ¿Qué es tryton? |
