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 -*- | |
""" | |
Created on Fri Dec 14 22:02:31 2012 | |
@author: Jean-Patrick | |
""" | |
import random | |
import itertools as it |
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 -*- | |
""" | |
Created on Tue Dec 18 08:33:15 2012 | |
Modif 3 january 2013 to use matplotlib.patches.Polygon | |
@author: Jean-Patrick Pommier | |
Test the shoelace formula to compute the area of a quadrilateral: | |
. Chose four points | |
. test if self intersection occurs: |
Loading
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 -*- | |
""" | |
Created on Thu Jan 31 10:40:59 2013 | |
@author: Jean-Patrick Pommier | |
http://dip4fish.blogspot.fr/2013/01/selecting-simple-quadrilateral-from.html | |
simpoly : | |
http://people.virginia.edu/~ll2bf/docs/various/polyarea.html | |
""" |
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
{ | |
"metadata": { | |
"name": "largest object" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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
''' | |
Pictures demo | |
============= | |
This is a basic picture viewer, using the scatter widget. | |
''' | |
import os | |
import kivy | |
kivy.require('1.0.6') |
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
#:kivy 1.0 | |
#:import kivy kivy | |
#:import win kivy.core.window | |
FloatLayout: | |
canvas: | |
Color: | |
rgb: 1, 1, 1 | |
Rectangle: | |
source: 'data/images/background.jpg' |
OlderNewer