Skip to content

Instantly share code, notes, and snippets.

@D3f0
D3f0 / Mara para Arduino.ipynb
Last active August 29, 2015 14:09
Mara para Arduino
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"metadata": {
"name": "",
"signature": "sha256:c2ce4907ed929839fac9a252c3e4c236ae3dce93a0fd79604365809b072a5302"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{"nbformat_minor": 0, "cells": [{"source": "# Entorno Pilas\n```python\n\nimport pilasengine\n\npilas = pilasengine.iniciar()\nprotagonista = pilas.actores.Aceituna()\nprotagonista.aprender(pilas.habilidades.SeguirAlMouse)\npilas.ocultar_puntero_del_mouse()\n\npilas.ejecutar()\n\n```\n", "cell_type": "markdown", "metadata": {"slideshow": {"slide_type": "slide"}}}, {"source": "## Cosas a tener en cuenta\n * Item\n * Item\n * Item", "cell_type": "markdown", "metadata": {"slideshow": {"slide_type": "slide"}}}, {"execution_count": null, "cell_type": "code", "source": "", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}], "nbformat": 4, "metadata": {"kernelspec": {"display_name": "Python 2", "name": "python2", "language": "python"}, "language_info": {"mimetype": "text/x-python", "nbconvert_exporter": "python", "version": "2.7.6", "name": "python", "file_extension": ".py", "pygments_lexer": "ipython2", "codemirror_mode": {"version": 2, "name": "ipython"}}, "celltoolbar": "Slideshow"}}
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.
import pilasengine
pilas = pilasengine.iniciar()
class Escena_Menu(pilasengine.escenas.Escena):
"Es la escena que muestra el menu"
# El texto anterior sera interpretado por Phyton para armar la
# documentacion de la clase
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
@D3f0
D3f0 / setup.py
Created July 7, 2011 14:54
Crear un ejecutable para windows
# A simple setup script to create an executable using PyQt4. This also
# demonstrates the method for creating a Windows executable that does not have
# an associated console.
#
# PyQt4app.py is a very simple type of PyQt4 application
#
# Run the build process by running the command 'python setup.py build'
#
# If everything works well you should find a subdirectory in the build
# subdirectory that contains the files needed to run the application
@D3f0
D3f0 / yiq.py
Created September 22, 2011 21:46
YIQ python script
#!/usr/bin/env python
# coding: utf-8
import operator
import itertools
from operator import getitem
from itertools import starmap
import colorsys
import PIL
from PIL import Image