Home
Videos uploaded by user “Sebastiaan Mathôt”
Python tricks: Demystifying async, await, and asyncio
 
15:59
In this video, I show how to write a simple asynchronous program in Python, using the async and await keywords, and the asyncio module. Link to Jupyter notebook: https://osf.io/w8u26/
Views: 15691 Sebastiaan Mathôt
Python tricks: properties, staticmethods, and classmethods
 
12:39
In this video I explain three decorators that are useful in object-oriented programming in Python: getter and setter properties, static methods, and class methods.
Views: 7274 Sebastiaan Mathôt
Python Decorators 1: The Basics
 
11:22
For more Python tutorials, visit http://python.cogsci.nl/. In this video, I demonstrate the basics of function decorators in Python. I also demonstrate the @functools.wraps decorator for preserving docstrings of decorated functions. You can download the Jupyter Notebook for this video from https://osf.io/szwhk/
Views: 5478 Sebastiaan Mathôt
7 Simple Tricks to Write Better Python Code
 
25:39
Visit http://python.cogsci.nl/ for more tutorials! Seven solutions to common small problems that Python programmers often solve in a suboptimal way. This video is understandable for beginners, but also contains useful advice for experienced programmers. - 0:50 Using enumerate() - 3:22 Using zip() - 6:35 Tuple unpacking - 9:40 Default dict values - 12:42 For ... else - 16:13 File reading with 'with' - 19:40 Exception handling
Views: 212721 Sebastiaan Mathôt
Python tricks: Writing user-friendly code with PEP-8 naming conventions
 
15:30
In this video, I describe the PEP-8 style guideline for Python, with a specific focus on the naming conventions for variables, functions, and classes, which can make your code much easier to use for others. The Jupyter notebook is available here: https://osf.io/xy8kh/
Views: 4326 Sebastiaan Mathôt
Profiling and optimizing your Python code | Python tricks
 
17:11
In this video, I show how you can profile Python code using the cProfile module, and how you can use this information to optimize your code, resulting (sometimes) in massive performance improvements. The Jupyter notebook is available from https://osf.io/upav8/
Views: 6648 Sebastiaan Mathôt
Ceebass - De Hopeloze Romanticus
 
03:06
Track afkomstig van de verzamel-cd Not For Profit 2. Zie http://www.ceebass.nl voor meer informatie.
Views: 3690 Sebastiaan Mathôt
Python Decorators 3: Turning a function into a class instance
 
05:31
In this video, I show how you can use a decorator to replace a function with a callable class instance that also has methods (class functions) and properties. You can download the Jupyter Notebook for this video from https://osf.io/2npaf/
Views: 1413 Sebastiaan Mathôt
Python tricks: All there is to know about Exceptions
 
18:12
In this video I demonstrate Exception handling in Python, highlighting several little known features such as the `else` and `finally` blocks, and the `raise from` syntax that was introduced in Python 3.
Views: 6629 Sebastiaan Mathôt
Python tricks: Type hints and static type checking
 
14:15
In this video I demonstrate type hints, which were introduced in Python 3.5. I also demonstrate static type checking with mypy.
Views: 2677 Sebastiaan Mathôt
Python Decorators 2: Decorators with arguments
 
09:32
In this video, I show how you can create a Python decorator that accepts arguments by implementing what you might call a 'meta-decorator'. You can also create decorators that work both with and without arguments. You can download the Jupyter Notebook for this video from https://osf.io/u96zr/
Views: 2174 Sebastiaan Mathôt
Python Generators 1: Functions that yield, suspend, and resume
 
10:54
For more Python tutorials, visit http://python.cogsci.nl/. In this video, I demonstrate the basic principle of generator functions (functions that yield) in Python. Code is available on osf.io/eyxc3.
Views: 1889 Sebastiaan Mathôt
Basic Python tricks: List slicing and list comprehensions
 
10:13
Check out the entire playlist with Python lectures! https://www.youtube.com/playlist?list=PLR-r0edywujd8D-R2Kue1C_wYEK_4Ii71 A basic Python tutorial, explaining what lists are, how list slicing works, and how you can use list comprehensions.
Views: 1312 Sebastiaan Mathôt
A simple explanation of Python function arguments, keywords, *args, and **kwargs
 
14:39
Check out the entire playlist with Python lectures! https://www.youtube.com/playlist?list=PLR-r0edywujd8D-R2Kue1C_wYEK_4Ii71 This is a simple explanation of how you can pass arguments to functions in Python. It covers: - arguments (without default value) - keywords (with default value) - argument lists or *args (an arbitrary number of arguments captured into a list) - keyword dictionaries or **kwargs (an arbitrary number of keywords captured into a dict)
Views: 6698 Sebastiaan Mathôt
Writing text with your mind (decoding attention through pupillometry)
 
04:56
This video is a demonstration of a technique that we have developed to write letters by covertly attending to them, without making eye movements, or any other kind of movement. This technique is based on measurement of pupil size. The details are described in: Mathôt, Melmi, van der Linden, & Van der Stigchel (2016) The mind-writing pupil: A human-computer interface based on decoding of attention through pupillometry. PLoS ONE. http://doi.org/10.1371/journal.pone.0148805
Views: 3198 Sebastiaan Mathôt
7 More Tricks to Write Better Python Code
 
30:34
This video is a follow-up to 7 Simple Tricks to Write Better Python Code. It again shows seven simple techniques for writing better and easier-to-read Python code. - 00:30 Inline if-else statements - 03:00 Sequence comparisons - 10:00 Extended unpacking (Python-3 only) - 13:57 Dict comprehensions - 18:25 collections.OrderedDict - 21:30 collections.defaultdict - 26:17 collections.Counter
Views: 19717 Sebastiaan Mathôt
Python tricks: The for loop (for, continue, break, else)
 
13:16
In this video, I show how the for loop works in Python, starting at the basics, then discussing more advanced use cases involving 'continue', 'break', and 'else', and finally taking a look at the Iterator protocol on which the for loop is built.
Views: 1885 Sebastiaan Mathôt
Debugging Python | Python tricks
 
15:11
In this video, I demonstrate how you can debug your Python code with a debugger (pudb). This is a powerful technique to locate and solve bugs in your code.
Views: 2681 Sebastiaan Mathôt
A tour of Ubuntu Gnome 17.04 for Unity users
 
14:37
In this video I demonstrate Ubuntu Gnome 17.04, and show how you can customize Gnome so that it (somewhat) resembles Unity (Ubuntu's soon-to-be-retired desktop environment).
Views: 12070 Sebastiaan Mathôt
Python tricks: Using magic (dunder) functions to create list-like objects
 
17:59
In this video I demonstrate how you can use magic functions, sometimes called dunder (double-underscore) functions, to support special list-like syntax in your own objects. Specifically, I will demonstrate __len__(), __contains__(), and __getitem__().
Views: 2755 Sebastiaan Mathôt
Creating a psychology experiment with OpenSesame 3.1
 
01:07:14
OpenSesame is a free program for developing experiments in psychology, neuroscience, and experimental economics. This screencast is a step-by-step walk through the beginner tutorial. This screencast is for OpenSesame version 3.1, Jazzy James.
Views: 16352 Sebastiaan Mathôt
Introduction to Neurons and Brain Anatomy | Biological Psychology 2.1
 
04:27
In this video, I introduce Section 2 of the Biological Psychology course, which deals with Neurons and Brain Anatomy. I introduce the relevant chapters from the free OpenStax Textbooks, and provide an overview of the other videos of Section 2. This is Video 1 of Section 2 (Neurons and Brain anatomy) of the Biological Psychology course.
Views: 1494 Sebastiaan Mathôt
OpenSesame 3.1 tutorial: Cats, Dogs, and Capybaras
 
30:00
In this video tutorial, I show how you can create a simple experiment with OpenSesame, an open-source experiment builder for the social sciences. For more information, see http://osdoc.cogsci.nl/
Views: 4016 Sebastiaan Mathôt
Numerical Python tricks: All there is to know about nan and inf
 
15:12
If you have ever done numerical processing in Python, you have probably encountered nan and inf values. But what are they exactly? In this video, I explain everything there is to know about not-a-number and infinite float values.
Views: 1673 Sebastiaan Mathôt
Application logging in Python | Python tricks
 
18:43
In this video, I demonstrate the Python logging module, which is a powerful way to log application messages, mainly for debugging purposes. The code for this video is available from: https://osf.io/4wjv9/.
Views: 1563 Sebastiaan Mathôt
OpenSesame experiment builder (screencast v0.27.2)
 
43:26
A more recent screencast is available here: https://www.youtube.com/watch?v=eiGXe-t-C28 OpenSesame is an open-source, graphical experiment builder for the social sciences. This video tutorial shows how to create a simple psychological experiment in OpenSesame. For more information about OpenSesame, visit http://www.cogsci.nl/opensesame. This video has been created by Chris Longmore (http://www.chrislongmore.co.uk/).
Views: 24266 Sebastiaan Mathôt
Python Tricks: Unpacking tuples, lists, and other iterators
 
17:31
Iterator unpacking (or multiple assignment) is a powerful Python technique in which there are multiple variables on the left-hand side of assignment (like so: x, y = 1 2). Iterator unpacking is incredibly powerful, and in this video I show all the ways in which it can be used.
Views: 2373 Sebastiaan Mathôt
Creating a psychology experiment with OpenSesame 3.0
 
01:02:18
For the newer video tutorial for OpenSesame 3.1, see https://youtu.be/FCXcnAv9aMA OpenSesame is an open-source tool to create behavioral experiments for psychology, neuroscience, and experimental economics. The full tutorial can be found at http://osdoc.cogsci.nl/3.0/tutorials/step-by-step-tutorial/
Views: 19593 Sebastiaan Mathôt
Creating a visual-search experiment in OpenSesame 3.2
 
17:07
In this video, I show how to create a basic visual-search experiment in OpenSesame 3.2. In the process, I show how to use named sketchpad elements.
Views: 6197 Sebastiaan Mathôt
Sensory memory | Biological Psychology 4.3
 
03:55
In this video, I talk about sensory memory, a sensory trace of what we perceive. Sensory memory is brief (less than 1 s) and has a high capacity. This is Video 3 of Section 4 (Memory) in the Biological Psychology video course.
Views: 1151 Sebastiaan Mathôt
Python Generators 2: send and yield
 
14:54
For more Python tutorials, visit http://python.cogsci.nl/. In this video, I demonstrate how you can send information to generator functions to implement bi-directional communication. Code is available on osf.io/eyxc3.
Views: 879 Sebastiaan Mathôt
OpenSesame tutorial: Creating a visual-search experiment using horizontal shuffling
 
15:23
See the OpenSesame playlist for more tutorials: https://www.youtube.com/playlist?list=PLR-r0edywujfPLKZi7VQtFu0QY3Bzkzt4 This tutorial shows how to create a visual-search experiment in OpenSesame (http://osdoc.cogsci.nl/), a free experiment builder for psychology, neuroscience, and experimental economics. It demonstrates so-called horizontal shuffling, which makes it possible to create a randomized search display using only the graphical user interface.
Views: 4058 Sebastiaan Mathôt
What a fidget spinner tells us about visual perception
 
06:21
In this video, I use a fidget spinner to demonstrate two surprising properties of human visual perception.
Views: 391 Sebastiaan Mathôt
Running psychological experiments on a tablet with OpenSesame (+ Ubuntu + Google Nexus 7)
 
05:23
OpenSesame is an open-source graphical experiment builder for the social sciences. This video demonstrates how you can run OpenSesame experiments on a tablet. The tablet is a Nexus 7 with Ubuntu Linux. For more information about OpenSesame, see http://www.cogsci.nl/opensesame
Views: 2408 Sebastiaan Mathôt
Using lists effectively in Python
 
23:03
Check out the entire playlist with Python lectures! https://www.youtube.com/playlist?list=PLR-r0edywujd8D-R2Kue1C_wYEK_4Ii71 In this video I show several convenient ways to use lists more effectively when programming in Python 3 or Python 2.
Views: 2863 Sebastiaan Mathôt
Creating your own interactive Python interpreter | Python tricks
 
25:28
In this video, I show how you can create your own interactive Python interpreter, somewhat similar to the well-known IPython interpreter. In the process, I will demonstrate several powerful Python techniques, including generator functions, generator expressions, higher-order functions, and referential transparency. You can find the code here: https://osf.io/va78n/
Views: 2023 Sebastiaan Mathôt
The action potential of the Venus Fly Trap
 
01:48
In this video I explain and show the action potential of the Venus Fly Trap, a carnivorous plant. Even though plants don't have neurons (!), the mechanisms that cause this remarkable plant to close its leaves around prey are remarkably similar to the action potential of neurons in the animal nervous system.
Views: 578 Sebastiaan Mathôt
Using Python inline script in OpenSesame 3.0
 
17:45
See the OpenSesame playlist for more tutorials: https://www.youtube.com/playlist?list=PLR-r0edywujfPLKZi7VQtFu0QY3Bzkzt4 OpenSesame is an open-source tool to create behavioral experiments for psychology, neuroscience, and experimental economics. This screencast explains the basics of using Python inline script in OpenSesame. For more information, see http://osdoc.cogsci.nl/
Views: 3101 Sebastiaan Mathôt
Who is tracking you when you visit a regular website?
 
10:30
Which third-party sites are loaded (and therefore able to track you!) when you visit a regular website? In this video, I investigate my own blog (cogsci.nl), the site of the Guardian, PornHub, and the privacy-focused search engine DuckDuckGo.
Views: 356 Sebastiaan Mathôt
Gestalt Theory | Biological Psychology 3.4
 
06:53
In this video, I talk about Gestalt Theory, which is a set of principles that describes how we parse visual input into objects. This is Video 4 of Section 3 (Perception) in the Biological Psychology video course.
Views: 454 Sebastiaan Mathôt
Video tutorial: Counterbalancing in OpenSesame
 
26:33
OpenSesame is an open-source, graphical experiment builder for the social sciences. This video tutorial shows how you can implement counterbalancing in OpenSesame. For more information about OpenSesame, visit http://www.cogsci.nl/opensesame. This video has been created by Chris Longmore (http://www.chrislongmore.co.uk/).
Views: 4383 Sebastiaan Mathôt
Different ways to use objects and attributes in Python
 
20:59
Check out the entire playlist with Python lectures! https://www.youtube.com/playlist?list=PLR-r0edywujd8D-R2Kue1C_wYEK_4Ii71 This screencast demonstrates several different ways to represent objects and attributes in Python, using the example of a kitten (the object) with a name and an age (the attributes). The techniques are: - using a list - using a dict - using a namedtuple - using a (simple) class - using a class with getters (properties) and setters - using the attr package
Views: 1577 Sebastiaan Mathôt
Running OpenSesame experiments in a browser (early tech preview of OSWEB)
 
03:50
OSWEB is an online runtime for psychology experiments developed with OpenSesame, a free experiment builder. This video shows an early tech preview. OSWEB is not currently ready for end-users. For more information about OpenSesame, visit http://osdoc.cogsci.nl/
Views: 522 Sebastiaan Mathôt
Data analysis with Python DataMatrix: Playing with movie data
 
16:11
A simple introduction to Python DataMatrix, an intuitive Python library for working with column-based data. See also http://datamatrix.cogsci.nl
Views: 1429 Sebastiaan Mathôt
Changes in pupil size in response to light
 
01:46
This video shows how the size of the pupil changes in response to light. When a bright stimulus is presented, the pupil rapidly constricts (becomes smaller). When a dark display is presented, the pupil dilates (becomes larger). Note that constriction in response to light occurs much more rapidly than dilation in response to darkness. This is real data (but schematically depicted, of course) from myself watching a computer display that alternates between black and white every 10 seconds. For more information, see http://www.cogsci.nl/smathot
Views: 13626 Sebastiaan Mathôt
Introduction to Perception | Biological Psychology 3.1
 
02:41
In this video, I introduce Section 3 of the Biological Psychology course, which deals with perception. I introduce the relevant chapters from the free OpenStax Textbooks, and provide an overview of the other videos of Section 3. This is Video 1 of Section 3 (Perception) of the Biological Psychology course.
Views: 213 Sebastiaan Mathôt
Attention | Biological Psychology 6.2
 
15:36
In this video, I describe attention, which is the selection of one aspect of perception over another. I discuss visual, spatial, and temporal attention, and then describe the biased-competition theory of visual attention. This is Video 4 of Section 6 (Attention and Consciousness) of the Biological Psychology video course. This is Video 2 of Section 6 (Attention and Consciousness) of the Biological Psychology video course.
Views: 373 Sebastiaan Mathôt
Navigating the Brain | Biological Psychology 2.4
 
03:01
In this video, I introduce terms for navigating the brain, i.e. terms that describe where in the brain things are: anterior, posterior, dorsal, ventral, lateral, and medial. This is Video 4 of Section 2 (Neurons and Brain anatomy) of the Biological Psychology course.
Views: 144 Sebastiaan Mathôt
Optical illusion: Stepping feet
 
01:47
The stepping feet motion illusion, as discovered by Anstis (2003) Neural Netw 16. When the background texture is visible, the two 'feet' appear to be stepping out of sync. In reality, of course, they are not. The illusion is strongest for some people if you don't look at the feet directly. See http://www.cogsci.nl/illusions for more optical illusions and an explanation.
Views: 35242 Sebastiaan Mathôt
Analyzing eye-movement and pupil-size data with Python DataMatrix
 
38:23
In this video, I illustrate DataMatrix, an intuitive Python library for numerical computing. To do so, I use data from a psychology experiment in which we measured pupil size while participants were reading words. For more information, see http://datamatrix.cogsci.nl/
Views: 869 Sebastiaan Mathôt

belgium dating personals
a business of love online dating by the numbers
bethel ak dating
dating american indian man
online dating phone numbers