Skip to content

Instantly share code, notes, and snippets.

View allcentury's full-sized avatar
🎈

Anthony Ross allcentury

🎈
View GitHub Profile
@allcentury
allcentury / cashregister2.rb
Last active August 29, 2015 13:56 — forked from gsheppard/cashregister2.rb
Cash Register II w/ Methods
=begin
As a cashier
I want to enter the sale price of each item
So that the program will calculate the amount due
Developed by: Anthony Ross, Dan Clarke, and Greg Sheppard
=end
def sub_total(array)
subtotal_amt = 0.0
array.each do |x|
subtotal_amt += x
@allcentury
allcentury / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:28 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.

In this article I'm going to walk you through process of creating Wordpress plugins. First I'm going to talk about some of the basic concepts in Wordpress plugin development like the actions, hooks, and API's that makes up Wordpress. Then were going to build a plugin where we apply some of the concepts and best practices in developing Wordpress plugins.

###Prerequisites

In order to fully benefit from this tutorial you should have a basic knowledge on PHP. As Wordpress is running on PHP and most of the code that we will be writing will be on PHP. A little bit of knowledge on HTML, CSS and JavaScript is also helpful but not required for this tutorial.