Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 -*- | |
## Basado en el script originalmente publicado en | |
## http://www.jansipke.nl/using-python-to-add-new-posts-in-wordpress/ | |
import datetime | |
import xmlrpclib | |
from xml.sax.saxutils import escape | |
import json | |
import markdown |
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 os | |
import sys | |
import argparse | |
import subprocess | |
from venv import EnvBuilder | |
# Custom options | |
parser = argparse.ArgumentParser(description='inherit venvs') | |
parser.add_argument( | |
'--other-venv-paths', |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 IPython.display import IFrame | |
def ddg(self, arg): | |
phrase = arg.replace(' ', '+') | |
url = "https://duckduckgo.com/?&q={0}".format(phrase) | |
return IFrame(url, 600, 400) | |
ip = get_ipython() | |
ip.define_magic('ddg', ddg) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html> | |
<html><head> | |
<meta name="description" content="Brython"> | |
<meta name="keywords" content="Python,Brython"> | |
<meta name="author" content="Pierre Quentel"> | |
<meta http-equiv="content-type" content="text/html; charset=windows-1252"> | |
<noscript>Please enable Javascript to view this page correctly.</noscript> | |
<script type="text/javascript" src="brython.js"></script> |
OlderNewer