Skip to content

Instantly share code, notes, and snippets.

View MWins's full-sized avatar

Malcolm Winslett MWins

View GitHub Profile
@MWins
MWins / workflow-start.md
Last active January 27, 2017 20:28
workflow-star

A simplified illustration of a workflow is building an HTML website for a client. Project goes through specific phases.

  • Discovery
  • Requirements Draft
  • Content Creation
  • Development
  • Testing
  • Client Approval
  • Revisions
  • Release
@MWins
MWins / js-work.html
Last active March 14, 2017 14:51
js-work
<!DOCTYPE HTML>
<html>
<body>
<h1>Welcome to Simpletrade Brokerage Firm</h1>
<h2>Prices quoted on:
<p id="date"></p></h2>
<table border="1" style="width:100%">
<tr>
<th>Comapny</th>
@MWins
MWins / PHP-inverted-index-search.php
Last active January 25, 2017 03:03
PHP-inverted-index-search
<?php
function indexSearch($lookFor) {
// load the data
$file = '../data/textdata.txt';
$data = file($file);
// build the index
foreach($data as $k=>$line)
{
$words = explode(' ',$line);
@MWins
MWins / php-templating-3-ways-2.md
Last active March 14, 2017 14:50
php-templating-3-ways

Part 2

First we create a new directory to house the shared files. Just going to name it template. It's created in the project root directory. Add a file to the directory named header.php. Open up the index.php file in the root directory and copy everything from the BODy tag up and paste it into the header.php. Save header.php.

Create a file named footer.php. Copy from index.php the last two lines

    </body></html> 

and paste into footer.php. Save it.

Time to use PHP's include function. Open up index.php. Remove everything down to the BODY tag. Type this in :

@MWins
MWins / bootstrap.md
Last active January 25, 2017 03:04
bootstrap How to setup a development environment
@MWins
MWins / This is HTML.md
Last active January 25, 2017 03:03
This is HTML

##This is HTML

This is enough HTML to use Javascript and basic CSS. Following this guide will not teach you HTML. It will only get you started. Resources for learning HTML are provided at the end.

It's a text based format. Save text file as file_name.html.

HTML is content (text) wrapped in specific tags which looks like this

<p>content goes here</p>
@MWins
MWins / online retail.md
Last active January 27, 2017 20:27
online retail

###online retail.

Go back to your boss and tell him you need a budget for this project and then get ready to hire specific people to help you.

First you need someone willing to listen to what specific requirements you have (# of products, details about those products, what payment methods will be accepted, etc).

Then you will need to take the design and have it converted to whatever CMS/E commerce application was decided on in the first step.

While that is going on you need to get the ecommerce application setup and configured. Then start adding products.

@MWins
MWins / standards.md
Last active January 25, 2017 11:15
Web Standards/Specifications
@MWins
MWins / ux-basics.md
Last active March 14, 2017 14:49
ux-basics

Basics for UX/Site Experience

Is all text legible for the target age group ?

What is the primary call to action?

What is the primary purpose of the site?

Which elements of the page are vital?

@MWins
MWins / AJAX-small-OO-php-site.md
Last active January 25, 2017 03:04
AJAX-small-OO-php-site

JSON is a data format which is used for exchanging data. It's structured text. It has multiple uses. Most common is replacing XML in AJAX.

AJAX is using javascript to fetch data (was XML but JSON is more often used or direct HTML). This is what allows form submissions without refreshing the page.

Angular is javascript framework mainly for building applications.

Pretty safe php framework would be Laravel. Though for a small site and a short deadline you might look into a micro framework like silex.

You can use jQuery, it's a js library and not a framework.