Tools Blog Learn Quizzes Smile API Log In / Sign Up
Tools Blog Learn Quizzes Smile API Log In / Sign Up
We have updated our privacy policy to let you know that we use cookies to personalise content and ads. We also use cookies to analyse our traffic and we share information about your use of our site and application with our advertising and analytics partners. By using this website or our application you agree to our use of cookies. Learn more about the way this website uses cookies or remove this message.

The basics of variable scope in JavaScript

Difficulty: 35 / 50
scope

In this post, I will try to explain JavaScript variable scopes and hoisting as well as the many implicit gotchas. To make sure we don't bump into any sudden, unforeseen problems while coding, we must really understand these concepts. Otherwise the trivial task of reading more advanced JavaScript code can prove an overwhelming and most times an unsuccessful attempt.

The scope is the "bucket" in which a variable exists and it is useful because it catalogs the "buckets" from which you can access a variable and if you actually have access to it from within a particular "bucket".

Read Full Article...

Login with GitHub using PHP

Difficulty: 35 / 50
Github-Jacket-Mug

This tutorial is not intended as a comprehensive package that fully exploits the GitHub API. It is however, a "guide" that is meant to show you how OAuth2 works by providing a practical example through the use of the GitHub API.

Using this package will authenticate users through their GitHub account by checking their public profile which in turn would represent enough to start a session on the website that creates the request. In this package I use the Slim Framework to read data from requests and configuration parameters, but the thing can be adapted to work with any framework.

Read Full Article...

A simple jQuery Ajax Request to PHP

Difficulty: 20 / 50
simple-ajax-requests

This article was originally written in 2010. This is an updated version on how to do simple Ajax requests using jQuery

Ajax is a very nice tool for web developers. It helps you interact with the visitor without reloading the page. Searching the internet you will find various Ajax code samples that are simply too complicated and some are too specific. I added some comments that will better explain what the code does and how it can be tweaked.

Read Full Article...

10 new and old HTML 5 tags you should consider using

Difficulty: 5 / 50
HTML5-Painted-On-Cute-Girl

HTML has come a long way from its inception back in Tim Berners-Lee mind in the late 1970's but its core standard of using tags within angled brackets hasn't changed much from its first, faltering steps. Indeed, with the World Wide Web Consortium (W3C) getting towards the final stages of standardizing HTML5 not far away, there are now many new elements that you can use to enhance your web constructions, and that includes many you probably didn't realize exist.

Read Full Article...

Bash history navigation and recursive grep searching

Difficulty: 10 / 50
Car-Bashing-In-a-Wall

In today's tutorial I will show you how to search through your bash history in order to avoid re-typing long commands every time. You will also learn about a few use cases for the grep CLI utility.

Read Full Article...

1 2 3 4 5 6 7 8 9 10