background preloader

Learning to program

Learning to program

How to Think Like a Computer Scientist Learning with Python by Allen Downey, Jeff Elkner and Chris Meyers. This book is now available for sale at Lulu.com. Hardcopies are no longer available from Green Tea Press. How to Think... is an introduction to programming using Python, one of the best languages for beginners. How to Think... is a Free Book available under the GNU Free Documentation License. Please send suggestions, corrections and comments about the book to feedback{at}thinkpython{dot}com. Download The book is available in a variety of electronic formats: Precompiled copies of the book are available in PDF and Postscript . Translations Here are some translations of the book into other (natural) languages: Spanish translation by Gregorio Inda. Other Free Books by Allen Downey are available from Green Tea Press. If you are using this book and would like to make a contribution to support my work, please consider making a donation toward my web hosting bill by clicking on the icon below.

The Node Beginner Book » A comprehensive Node.js tutorial A propos Professionnel de l’informatique, je ressentais le besoin de monter cet espace de liberté pour promouvoir mes idées, exprimer mes coups de gueule et partager mes découvertes. Ce « blog-notes » me permet d’intensifier ma veille technologique, d’aborder un ensemble de problématiques liées au numérique (interopérabilité, libertés, neutralité, etc), essayant de sensibiliser des utilisateurs qui n’en ont pas toujours conscience tout en essayant d’y apporter des solutions. N’hésitez pas à faire de même via les commentaires, respectez les autres et évitez le langage SMS. Si vous souhaitez me suivre, vous pouvez : – vous syndiquer au flux RSS de ce blog – me suivre sur Twitter – mais aussi suivre la Revue du Web : Shaarli (RSS). Le moteur de blog utilisé est le logiciel libre WordPress, disponible gratuitement librement. La revue du web utilise le logiciel libre Shaarli, un autre script sous licence libre. Vos données ne sont pas (et ne seront jamais) exposées !

Think Python: How to Think Like a Computer Scientist How to Think Like a Computer Scientist by Allen B. Downey This is the first edition of Think Python, which uses Python 2. If you are using Python 3, you might want to use the second edition, which is here. Buy this book at Amazon.com Download Think Python in PDF. Read Think Python in HTML. Example programs and solutions to some problems are here (links to specific examples are in the book). Description Think Python is an introduction to Python programming for beginners. Some examples and exercises are based on Swampy, a Python package written by the author to demonstrate aspects of software design, and to give readers a chance to experiment with simple graphics and animation. Think Python is a Free Book. If you have comments, corrections or suggestions, please send me email at feedback{at}thinkpython{dot}com. Other Free Books by Allen Downey are available from Green Tea Press. Download Precompiled copies of the book are available in PDF. Earlier Versions Translations and adaptations

Understanding JavaScript Closures In JavaScript, a closure is a function to which the variables of the surrounding context are bound by reference. Every JavaScript function forms a closure on creation. In a moment I’ll explain why and walk through the process by which closures are created. Then I’ll address some common misconceptions and finish with some practical applications. But first a brief word from our sponsors: JavaScript closures are brought to you by lexical scope and the VariableEnvironment… Lexical Scope The word lexical pertains to words or language. Consider the following example: Function inner is physically surrounded by function outer which in turn is wrapped by the global context. global outer inner The outer lexical scope of any given function is defined by its ancestors in the lexical hierarchy. VariableEnvironment The global object has an associated execution context. We could represent the VariableEnvironment with pseudo-code… However, it turns out this is only part of the picture. The [[scope]] property

Master d'Informatique - 1ère année - Université d'Aix-Marseille Master d'informatique Année 2014-2015 Equipe enseignante Cours, Tds, TPs : François Denis (St Jérôme), Cécile Capponi (St Jérôme), Hachem Kadri (Luminy), Stéphane Ayache (Luminy), Antoine Bonnefoy (Luminy) Le module consiste en 5 cours de 2h00, 5 TDs de 2h00 et 5 TPs de 2h00. Contenu du cours : Introduction aux concepts de bases : formalisme statistique pour l'apprentissage supervisé (classification et régression), l'apprentissage non supervisé et l'estimation de densité Arbres de décision : algorithme ID3, élagage Algorithme du perceptron : temps de convergence, propriétés de généralisation. Organisation du module à Saint-Jérôme Début des cours, des TDs et des TPs : le mardi 18 novembre 2014. Cours : salle 6, mardi 10h00-12h00 TDs : salle 6, mardi 13h00-15h00 TPs : salle (à préciser), mardi : 15h00-17h00. Supports de cours : Chapitre 1 : Introduction Transparents. Chapitre 2 : les arbres de décision Chapitre 3 : le perceptron Chapitre 4 : régression linéaire Annexe : rappels de probas-stats

Joe's Blog: An intro to modern OpenGL. Chapter 1: The Graphics Pipeline An intro to modern OpenGL. Chapter 1: The Graphics Pipeline updated April 5, 2010 17:12:05 PDT Table of Contents | Chapter 2 » OpenGL has been around a long time, and from reading all the accumulated layers of documentation out there on the Internet, it's not always clear what parts are historic and what parts are still useful and supported on modern graphics hardware. Update: Join the Reddit discussion. What is OpenGL? Another recent development has been the adoption of general purpose GPU (GPGPU) libraries, including nVidia's CUDA and Khronos' OpenCL. For these tutorials, I'm going to assume you're already a programmer and that you know C, but that you haven't necessarily seen OpenGL or done graphics programming before. Where do I get OpenGL, GLUT, and GLEW? OpenGL comes standard in some form or another on MacOS X, Windows, and most Linux distributions. To install GLUT and GLEW, look for the binary packages on their respective sites. The graphics pipeline The vertex and element arrays

Constraints HomeContents In this part of the SQLite tutorial, we will work with constraints. Constraints are placed on columns. They limit the data, that can be inserted into tables. We have the following constraints: NOT NULL constraint A column with a NOT NULL constraint cannot have NULL values. sqlite> CREATE TABLE People(Id INTEGER, LastName TEXT NOT NULL, ...> FirstName TEXT NOT NULL, City TEXT); We create two columns with NOT NULL constraints. sqlite> INSERT INTO People VALUES(1, 'Hanks', 'Robert', 'New York'); sqlite> INSERT INTO People VALUES(2, NULL, 'Marianne', 'Chicago'); Error: People.LastName may not be NULL The first INSERT statement succeeds, while the second fails. UNIQUE constraint The UNIQUE constraint ensures that all data are unique in a column. sqlite> CREATE TABLE Brands(Id INTEGER, BrandName TEXT UNIQUE); Here we create a table Brands. We get an error 'column BrandName is not unique'. Note that a PRIMARY KEY constraint automatically has a UNIQUE constraint defined on it. Primary key

Related: