Time | User | Action |
---|---|---|
20/04/06(Mon)09:26 | Prabooks | Logged in |
20/04/06(Mon)08:37 | admin | Added Moderator Prigone |
20/04/06(Mon)07:23 | admin | Added Guest Agookint |
20/04/06(Mon)06:37 | Exclobs | Logged out |
20/04/06(Mon)06:15 | admin | Added Moderator Deaverm |
20/04/06(Mon)05:09 | Exclobs | Logged in |
20/04/06(Mon)05:00 | admin | Failed login attempt |
20/04/06(Mon)01:13 | admin | Added Supermoderator Exclobs |
This file contains 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 random import choice | |
from datetime import datetime | |
# Se asume que los extranjeros nacieron en el sigo XX | |
centuries = {"1": "19", "2": "19", "3": "18", "4": "18", "5": "20", "6": "20", "7": "20", "8": "20", "9": "20"} | |
def gencnp(): | |
cnp = [] | |
cnp.append(str(choice(range(1,10)))) # Primer dígito | |
cnp.append('{:02d}'.format(choice(range(0,100)))) # Segundo y tercer dígito (año) |
This file contains 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
<?php | |
/* | |
* Para que funcione es necesario colocar este archivo en /var/www/localhost/htdocs/ | |
* dentro de una carpeta con permisos de escritura. Utiliza SQLite como base de datos. | |
*/ | |
header('Content-type: application/json'); | |
$user = (empty($_POST['user']) === false ? $_POST['user'] : ""); | |
$pass = (empty($_POST['pass']) === false ? $_POST['pass'] : ""); | |
$output = Array(); |
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 3 columns, instead of 1 in line 8.
This file contains 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
Enlace Titulo Comentarios | |
bloglenovo.es/de-50-gramos-8-kilos-mini-altavoces-y-super-loros-para-el-movil/ De 50 gramos a 8 kilos, mini altavoces y super loros para el móvil 1 | |
bloglenovo.es/igrill-el-termometro-digital-que-controlas-desde-tu-smartphone/ iGrill, el termómetro digital que controlas desde tu smartphone 1 | |
bloglenovo.es/asi-seran-los-cuadros-del-futuro/ Así serán los cuadros del futuro 2 | |
bloglenovo.es/es-necesario-desenchufar-la-tablet-una-vez-cargada/ ¿Es necesario desenchufar la tablet una vez cargada? 0 | |
bloglenovo.es/cual-es-la-mejor-manera-de-limpiar-la-pantalla-del-movil-y-tablet/ ¿Cuál es la mejor manera de limpiar la pantalla del móvil y tablet? 0 | |
bloglenovo.es/entrevista-aymar-de-lencquesaing-en-el-blog-xataka/ Entrevista a Aymar de Lencquesaing en el blog Xataka 0 | |
bloglenovo.es/lenovo-presenta-resultados-y-habla-de-sus-productos-articulo-en-tic-beat/ Lenovo presenta resultados y habla de sus productos. Artículo en TIC BEAT 0 | |
bloglenovo.es/preparate-para-la-vuelta-la-oficina-estos-son-los-17 |
This file contains 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 re, json | |
from requests import request | |
from sys import version_info | |
if version_info.major == 2: | |
from urllib import urlencode | |
elif version_info.major == 3: | |
from urllib.parse import urlencode | |
unichr=chr |
This file contains 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
La felicidad de las nocode tools. | |
+----------------+ +--------+ | |
|👤 Usuario feliz| |{d} | | |
+------------+---+ |Fichero | | |
| |proyecto| | |
| /--+--------+ | |
| | | |
v v | |
+------+ | |
|{io} | |
This file contains 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 BeautifulSoup import BeautifulSoup as bs | |
import re, requests | |
from braceexpand import braceexpand | |
patron_interpretes = re.compile('<a class="textoNormal" href="peliculas\.php\?action=search&tipo=interprete&que=[^"]+">([^<]+)') | |
patron_extras = re.compile('<b>Otros extras</b>: (.+)(?:<br>)</span>') | |
saltos = re.compile("[\r\n]") | |
def obtener_sinopsis(): | |
global sopa |
This file contains 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
[ | |
{ | |
"author": [ | |
"Josep-Maria Gili", | |
"Bego\u00f1a Vendrell", | |
"Mag\u00ed Marc\u00e9" | |
], | |
"category": [ | |
"Popular Science" | |
], |
This file contains 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 scrapy, json | |
from scrapy.crawler import CrawlerProcess | |
class BookSpider(scrapy.Spider): | |
name = "freebooks" | |
start_urls = ['http://libros.csic.es/freebooks.php'] | |
def parse(self, response): | |
# Because the HTML is malformed the links of the books are extracted with regular expressions | |
urls = list(set(response.css("#principal").re("http://libros.csic.es/product_info.php\?products_id=[0-9]+"))) |
This file contains 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
/* | |
To test it you need to extract the database of the application and execute the | |
SQL statements in an external program or from Android with the following command | |
(it is assumed that the device is rooted): | |
sqlite3 /data/data/com.gabrielittner.timetable/databases/timetable.db < timetable2ical.sql | |
*/ | |
CREATE temporary TABLE weekdays ('day' INTEGER, 'short_name' CHAR, 'long_name' VARCHAR); | |
insert into weekdays values('1', 'MO', 'Monday'); | |
insert into weekdays values('2', 'TU', 'Tuesday'); |
NewerOlder