Using Neurosity Crown to do something fun ✨ The Neurosity Crown is a brain computer interface (BCI), basically a wearable EEG device that records brain activity via electrodes. They provide an API with documentation so its pretty easy to get started. Check Neurosity out here: https://neurosity.co/
Scope in JavaScript & the 4 different types scope – Part 1
The word “scope” itself means “extent “or “range” to which a subject matter is limited to. In context to coding this means, that whether you can use a variable or not, is determined by where it is declared in your code. There are 4 types of scope in a JavaScript document, for example script.js 1. Global scope Inside a JavaScript document, global scope is the
Functions as objects
In JavaScript functions are a type of object known as function object. You can work with function objects as though they were objects. Functions may be assigned to objects, passed in as arguments to other functions, returned from other functions. Additionally a function can be passed into an array. And this gets me to earlier in my articles when I’ve stated “almost everything in JavaScript
Execution context in JavaScript for beginners
Introduction Execution context is an abstract concept describing the environment within which JavaScript code is executed. The execution context will dictate if a variable, object, or another block of code is accessible or not. There are two types of execution contexts: global and function. Let’s examine the global execution context first. Global execution context The global execution context is the default execution context. Variables and
The Learn How to Code Planner
ps: If you just want to download, go here: https://bit.ly/3biXP4j Learning how to code can be overwhelming! Often learners confuse a curriculum with a plan to learn coding. A curriculum is a list of topics on a particular subject for example JavaScript or python. Whereas, a planning involves the steps including the time and energy commitments to finish the curriculum. Common problematic pattern As I
JavaScript filter()
Part of my “Functional JavaScript” programming notes Syntax: let newArray = Oldarray.filter(callback(element, index, array)); Explanation: The filter method returns a new array from the filtered items from the oldArray Items are filtered according to some condition To do so a callback function is used The callback function takes 3 arguments: element: The current element index: the index of the current element array: the old array
Browser Snapchat Clone
Not sure why I never updated my blog with that but last summer I coded a browser based SnapChat clone. Oh! so much fun. It’s been coded by using JavaScript and a face tracking library called tracking.js NOTE: for whatever reason the code doesn’t work for you is mostly like (95%) because of a cross browser compatibility issue. I’ve tested this on IE, Chrome and
Udemy milestone reached
Time to change the footer on this blog which says 7000+ and make it 10,000+! I’m happy to say 4 years later I’m still doing what I intended to do which was to lower the entry barrier into coding by project based learning.
Simply Auth now on heroku!
Past week I’ve been fixing issues with the simply auth project now on heroku! https://simplyauth.herokuapp.com/ I will add a rate limiting feature to limit login attempts to 3 and call it a day with this project. Rate limiting helps with brute force attacks so that a request from the same I.P address cannot have an unlimited amount of login attempts. It also makes an ‘app’
JWT: What are JSON Web Tokens & use cases
Same old web..new drama.. What are JSON Web Tokens? [JWT]? JWT are tokens that you can use in your web application to transfer data over a network and therefore authenticate communication between 2 parties. A better definition is: JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties. – Source It is a hash like encrypted string