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
cpdef int fib(int n): | |
cpdef fibAux(int n, int a, int b): | |
if n == 0: | |
return a | |
else: | |
return fibAux(n-1,a+b,a) | |
if n == 2 or n == 1: | |
return n |
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
''' | |
Look at foo1 and foo2 | |
Foo1 makes a comparison, uses an if on each interation and is able to stop interacting at any point of the array | |
Foo2 a comparison, a boolean calculus and an attribution at each interaction, and always loop through ALL the array | |
Let's see how they run... | |
''' | |
import time |
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
#!/usr/local/bin/python2.7 | |
import sys | |
def printLine(n): | |
sys.stdout.write(str(n)) | |
if n != 1: | |
sys.stdout.write(' ') | |
printLine(n-1) | |
else: |
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
__author__ = 'Joao' | |
from Geometry.Point import ControlPoints | |
from Geometry.Point import Point2D | |
from bezierCurveAlgorithms.deCasteljau import bezier_curve_generator | |
from fn import recur | |
def subdivide(control_points,t = 0.5): | |
""" | |
@param control_points: The control points of the Bezier curve |
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 charset="utf-8"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> | |
<meta name="description" content="A single-page template generated by Tizen Web IDE"/> | |
<title>HTMl 5 - JSon - Test</title> | |
<link rel="stylesheet" href="./css/jquery.mobile-1.3.2.css"/> |
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
//This program is free software: you can redistribute it and/or modify | |
//it under the terms of the GNU General Public License as published by | |
//the Free Software Foundation, either version 3 of the License, or | |
//at your option) any later version. | |
// | |
//This program is distributed in the hope that it will be useful, | |
//but WITHOUT ANY WARRANTY; without even the implied warranty of | |
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
//GNU General Public License for more details. | |
// |
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
/*This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
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
<?php | |
abstract class Node{ | |
abstract public function __construct($left,$val,$right); | |
abstract public function isEmpty(); | |
abstract public function insert($val); | |
abstract public function member($val); | |
} |
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
ArrayList<String> owners = new ArrayList<String>(); | |
ArrayList<String> owner1Teams = new ArrayList<String>(); | |
//Creating the unfilter collection | |
owners.add("Owner 1 - Team 1"); | |
owners.add("Owner 1 - Team 2"); | |
owners.add("Owner 2 - Team 1"); | |
owners.add("Owner 2 - Team 2"); | |
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
Loja 1 | 07/06 | 24.99 |
---|
OlderNewer