Blog


JavaScript Bubble Sort Functions Using a Do/While Loop and Nested For Loops
Posted on July 13, 2015 in Algorithms, JavaScript by Matt Jennings

Per this video, a Bubble Sort is where an array is looped through and the largest …

Read more


Example of Setting Up a Simple Node.js Web Page
Posted on July 10, 2015 in Node.js by Matt Jennings

// get the http module
var http = require(“http”);

// fs module allows us to read and write content for responses
var fs …

Read more


Node.js, npm, and Homebrew Mac Terminal Commands
Posted on July 10, 2015 in Command Line, Mac, Node.js by Matt Jennings

brew install node

node -v

npm list -g –depth=0

brew update
brew upgrade node

brew update && brew upgrade

brew uninstall node


Post to a MySQL Database Using a jQuery AJAX Form with CodeIgniter
Posted on July 10, 2015 in AJAX, CodeIgniter, MVC, MySQL, PHP by Matt Jennings

<?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’);

class Quote extends CI_Model
{

public function all()

Read more


Using OOP JavaScript and jQuery to Shuffle a Deck of Cards, Deal a First Card, Deal a Random Card, and use this
Posted on July 9, 2015 in JavaScript, jQuery by Matt Jennings

Some of the code snippets below are from my deck of cards JavaScript game that uses object constructors, …

Read more