Skip to content

Instantly share code, notes, and snippets.

@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
@D3f0
D3f0 / mahuel.st
Created September 27, 2011 22:12
Primer Componente con Seaside
WAComponent subclass: #D3f0Contador
instanceVariableNames: 'contador'
classVariableNames: ''
poolDictionaries: ''
category: 'nahuel'!
!D3f0Contador commentStamp: 'NahuelDefosse 9/27/2011 18:16' prior: 0!
Probando el ejemplo de diógenes :)
Instance Variables:
contador <Number>!
@D3f0
D3f0 / mejora.st
Created September 28, 2011 14:12
Mejora
WAComponent subclass: #D3f0Index
instanceVariableNames: 'conardor1 contador2'
classVariableNames: ''
poolDictionaries: ''
category: 'nahuel'!
!D3f0Index methodsFor: 'as yet unclassified' stamp: 'NahuelDefosse 9/27/2011 19:36'!
canBeRoot
^ true.! !
@D3f0
D3f0 / grepfile.py
Created March 15, 2012 14:14
Grep files using Qt with grep
# encoding: utf-8
import sys
import os
import sip
import re
from operator import itemgetter
# Qt
sip.setapi('QString', 2)
from PyQt4.Qt import *
_ = lambda s:s
@D3f0
D3f0 / fabfile.py
Created June 13, 2012 15:14
Update django
# encoding: utf-8
from fabric.api import *
from fabric.contrib.files import *
import sys
import os
from os import path
from base64 import decodestring as _decodestring
from fabutils import Package
author_email = 'bmFodWVsLmRlZm9zc2VAZ21haWwuY29t\n'
@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"}}