How To Start Versioning Your Project On GitHub

How To Start Versioning Your Project On GitHub

Versioning If you have a project or a library on Github(OperSource Yayy!!), and ever wondered how you could start versioning your project and release a new version if you update you code. Versioning is something you could do with your code to provide support for your users to still use your old code and when …

+ Read More

Basic Algorithm Scripting – Find the Longest Word in a String

Basic Algorithm Scripting – Find the Longest Word in a String

Problem Statement ( Find The Longest Word in a String ) : Return the length of the longest word in the provided sentence. Your response should be a number. Solution : function findLongestWord(str) { var s = str.split(” “); var max = s.sort(function(a,b){ return b.length – a.length; }); return max[0].length; } Explanation : The task …

+ Read More

Custom Validation Rule – Laravel

Custom Validation Rule – Laravel

Laravel is one framework that makes validation very easy. There are many validation rules predefined, for e.g., email, url, min, max, date etc. etc. But sometimes those are also not enough for our needs. So, for that laravel gives us the power to create a custom validation rule of our own. Custom Validation Rule : …

+ Read More

Basic Algorithm Scripting – Check for Palindromes

Basic Algorithm Scripting – Check for Palindromes

Problem Statement (Check for Palindromes) : Return true if the given string is a palindrome. Otherwise, return false. A palindrome is a word or sentence that’s spelled the same way both forward and backward, ignoring punctuation, case, and spacing. Note: You’ll need to remove all non-alphanumeric characters(punctuation, spaces and symbols) and turn everything lower case …

+ Read More

Basic Algorithm Scripting – Factorialize a Number

Basic Algorithm Scripting – Factorialize a Number

Problem Statement (Factorialize a Number) : Return the factorial of the provided integer. If the integer is represented with the letter n, a factorial is the product of all positive integers less than or equal to n. Factorials are often represented with the shorthand notation n! For example: 5! = 1 * 2 * 3 …

+ Read More

Basic Algorithm Scripting – Reverse a String

Basic Algorithm Scripting – Reverse a String

Problem Statement (Reverse a string) : Reverse the provided string. You may need to turn the string into an array before you can reverse it. Your result must be a string. Solution : function reverseString(str) { return str.split(”).reverse().join(”); } Explanation : You can’t directly reverse a string, but what you could do, is convert the …

+ Read More

Laravel : Accessors and mutators – Learn how to use them

Laravel : Accessors and mutators – Learn how to use them

Have you ever had to show a combination of columns of data from table or process data before saving it to the database. The answer would probably be yes, who doesn’t. This is where the concept of Accessors and mutators come in handy. Let me show you what they mean and how they work. Accessors …

+ Read More

The Laravel Way : Ajax request

The Laravel Way : Ajax request

It was 1st day of my job at a local firm as a Laravel developer. And I didn’t knew a thing about laravel at that time. I started my learning from Laracasts. On probably 10th day, my manager told me to create a blog application for a client. In which he requires to have all …

+ Read More

www.000webhost.com