Skip to content

Instantly share code, notes, and snippets.

View kikocorreoso's full-sized avatar

kikocorreoso

  • Smile Co
  • smileland
View GitHub Profile
@kikocorreoso
kikocorreoso / test.html
Last active April 25, 2021 17:32
load js on demand on brython.
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.9.2/brython.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.9.2/brython_stdlib.min.js"></script>
</head>
<body onload="brython()">
<script type="text/python">
from browser import document, window, html
@kikocorreoso
kikocorreoso / EvolucionDemandaElectrica(2020-03-30).ipynb
Created March 20, 2020 22:38
Evolución Demanda Eléctrica España (2020-03-20)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kikocorreoso
kikocorreoso / index.html
Created July 24, 2019 06:30
Brython "AJAX" comments
<!doctype html>
<html>
<head>
<title>Brython ajax example for comments</title>
<meta charset="UTF-8">
<noscript>Please enable Javascript to view this page correctly.</noscript>
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.7.4/brython.min.js"></script>
<script type="text/python">
from browser import document as doc, alert, html
@kikocorreoso
kikocorreoso / index.html
Last active December 5, 2017 13:17
Brython app embedded in PyQt5. Save all the files on the same folder and run main.py
<!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>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kikocorreoso
kikocorreoso / DataScienceCourse_assignment6.ipynb
Created February 8, 2016 14:40
UW coursera Data Science Course - assignment 6
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kikocorreoso
kikocorreoso / birtualenb.py
Created December 2, 2015 21:06
Proof of concept to see the possibility to inherit venvs in an easy way
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',
@kikocorreoso
kikocorreoso / R_puntoflotante.ipynb
Created June 23, 2015 12:49
R puntoflotante.org
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kikocorreoso
kikocorreoso / brythonmagic-highstosk.ipynb
Created November 22, 2014 11:11
Example of use og HighStock with Bython and Brythonmagic in the IPython notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kikocorreoso
kikocorreoso / ddg_magic.py
Created September 6, 2014 22:25
Duckduckgo magic for he IPython notebook
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)