5 years ago I made my first course and it was on Git. I learned a lot about making courses, video editing, sound editing and how people learn! Because I like to focus on core stuff example Vanilla JavaScript instead of libraries and frameworks, I rarely have to update things. Infact this course is still relevant and has had only 1 minor update during it’s
forEach( ), sort( ) and filter( ) for newbies
forEach() ES6 has introduced the forEach() method which allows you to loop through an array. Arrays as you may already know are of the type ‘object’. In contrast to the string,number,boolean, undefined and symbol types which are primitive data types. For example if we console.log the typeof operator to find the typeof array, objectwill be logged, as seen below: [code] const yummies = [‘Ice-cream’,’Cupcake’,’Donut’,’Cupcake’]; console.log(typeof
Sweet & Sour mongoose.js methods – 2
This is part of the ‘Sweet & Sour mongoose.js methods’ series. In this function we will write a method that acts upon the UserSchema to check whether an email OR username already exists in the database. As an example use-case, this method can then be used in the any of your routes files by exporting the “User” to check whether an email address already exists
Conditionally rendering EJS template with res.locals in express.js
This snippet is to conditionally render navbar items based on whether a user is logged in OR not. So toggle the ‘Login’ button to ‘Logout’ if the user is already logged in and vice versa. I admit it took more time that I had anticipated. Primarily because in the beginning I insisted on using a global variable in express to manage the user’s ‘isAuthenticated’ state
FullStack Vue.js December
Committing to 2 fullstack vue projects this month. There you go, made it public. Resources I’m using: Official Vue.js documentation https://vuejs.org/v2/guide/ Fullstack Vue Book – The Complete Guide to Vue.js – Fullstack.io https://www.fullstack.io/vue Getting to know vue.js Vue Handbook by @flaviocopes
Let’s JavaScript! CliffsNotes
Introduction Extensive JavaScript notes. CliffsNotes version. ###JavaScript Syntax ####JavaScript Comments A line that begins with // is a comment. A multi-line comment has the form: /* */ ####Strict Mode When strict mode is in effect, the JavaScript interpreter will emit errors for unsafe syntax. Invoke strict mode by placing the following statement at the top of a JavaScript file or at the top of a
Growing
Let’s JavaScript!: To $git -push and $git-pull from the universe’s knowledge repository. More on this later.. Currently trying to push code locally into git repos.
Coding worksheet
This is the 3rd code worksheet in a series of: “As long as they work and I’m getting results”. This worksheet features For Loops. While coding is a pretty hands on activity, reading is probably the most under-rated part of coding! Which is part of what I’m trying to do here with the worksheets, present bite sized information for scrumptious and easier consumption to the
Transparent Non Bootstrappy – Twitter – Bootstrap Navbar
I did some breaking and re-making of twitter bootstrap’s navbar. I love how convenient everything in twitter bootstrap is with all the pre-defined classes etc but it does take some time to customize bootstrap components and make them a little less bootstrappy…. [codepen_embed height=”568″ theme_id=”21518″ slug_hash=”WrxqVE” default_tab=”result” user=”Kauress”]See the Pen <a href=’http://codepen.io/Kauress/pen/WrxqVE/’>Transparent Twitter Bootstrap NavBar</a> by Kauress (<a href=’http://codepen.io/Kauress’>@Kauress</a>) on <a href=’http://codepen.io’>CodePen</a>.[/codepen_embed] Here’s the HTML