JSFiddle

  • Data Parser #10 is the latest revision

    My use case here is i need a function that can try and parse anything the user passes in and sometimes that can be crazy stuff that would break other parse methods. so i used lodash to do alot of the heavy lifting then i created my own function to mixin.

    function Typpy(input, target) {
      if (arguments.length === 2) {
        return Typpy.is(input, target);
      }
      return Typpy.get(input, true);
    }
    Typpy.is ...
  • Api AI Youtube Integration #15 is the latest revision

    jQuery 3.0.0, HTML, CSS, JavaScript

    var accessToken = 'c200695729994831b5c3d17f1f4cfaa5'
    var baseUrl = 'https://api.api.ai/v1/'
    $(document).ready(function() {
      $('#input').keypress(function(event) {
        if (event.which ...
  • natural Numbers

    If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

    
    
    //If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5 ...
  • JS palindrome check #8 is the latest revision

    A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward. Allowances may be made for adjustments to capital letters, punctuation, and word dividers.

    function checkPalindrome(str) {
        return str.toLowerCase() == str.toLowerCase().split('').reverse().join('');
    }
    
    alert('Madam is a palindrome:'+ checkPalindrome('madam'))
    alert('sir ...
  • Todo Filter

    Just Javascript

    var toDo = ['Laundry and fold clothes', 'Clean & Mop ' , 'Mop the Car','Mow the grass']
    var toDoFilter = []
    var filterTerm = 'a'
    for(var i = 0; i < toDo.length; i++){
    	var patt = new RegExp(filterTerm,'i');
    	if(patt.test ...
  • JS interview project #2 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    // CLIENT MANAGMENT SYSTEM
    // 1. Display the array below in a list in html with all appropriate information provided (NOTE MUST ...
  • Double Function Call #4 is the latest revision

    Double Function Call

    var x = 10;
    var y = 20;
    var z = function() {
        console.log(x);
        x += 5;
        y += 5;
        console.log(x);
        var ...
  • Run-Auto simple example #2 is the latest revision

    Based of run-auto i create a simple example to help show people how it can work behind the scenes

    function auto (task,callback){
    var listTask = Object.keys(task)
    var returned = {}
    for(var i = 0; i < listTask.length; i++){
      task ...
  • Lodash toBoolean Mixin

    https://github.com/lodash/lodash/issues/2065

    function toBoolean(value) {
      if (!value) {
        return false;
      }
      if (typeof value == 'number' || typeof value == 'boolean') {
        return !!value;
      }
    	return _.replace(_ ...
  • Lodash Playground #462 is the latest revision

    Play with lodash functions

    
    function toBoolean(value) {
      if (!value) {
        return false;
      }
      if (value === true || value === false)) {
      return value;
    }
    return _.replace(_.trim(value ...