Skip to content

Instantly share code, notes, and snippets.

View MWins's full-sized avatar

Malcolm Winslett MWins

View GitHub Profile
@MWins
MWins / php-interview.md
Last active January 27, 2017 20:43 — forked from messified/php-interview.md
PHP Developer Interveiw Questions - date unknown

##PHP Developer Interview: What you should know

  1. What’s the difference between " self " and " this " ?
  2. What is a " Static Class "? Why use it?
  3. What is a Closure?
  4. Describe the difference between Public, Protected, and Private.
  5. What is dependency injection? Why is used? How does it relate to Composition?
  6. What does “ &= “ mean, and what kind of operator is it?
  7. Explain Abstract Class?
  8. What is a natural join? What is a Left or Right join?
@MWins
MWins / design practice work.md
Last active August 29, 2015 14:16
design practice work

Types of sites for design practice work :

  • blog - centered on a current media property (TV,Music,Whatever)
  • blog full - front page, post single page, category or archive view
  • single product website
  • full product website
  • service company (without major functionality, just basic info)
  • single page promotion - treat as stand alone brand w/o ability to order the product or promotion
  • organization website - little bit more advanced, should contain a limited directory of personnel
@MWins
MWins / advice-others.md
Last active January 27, 2017 20:44
Advice on Startups and General

Advice on Startups and General

The business model of Weblogs, Inc. was based on building many websites, see which ones would survive, and only further develop those who had a chance to become successful. At first, probably to optimize resources, all blogs used the same template and the most basic form of logotype as a logo, and even their web addresses were subdomains of the single weblogsinc.com domain name.

10 points from PG

pick good cofounders

launch fast

@MWins
MWins / SEO-terms.md
Last active August 10, 2017 09:28
SEO-terms

301 Redirect

  • Method of redirecting an old webpage to a new location. More simply, to display another web page for the web address that you are trying to visit. 301 implies that the move is permanent (as opposed to temporary, etc.)

Affiliate Marketing

  • A marketing program in which an advertiser pays an affiliate for driving event-driven traffic to their site. An event is primarily completing an order on the advertisers site but could simply be some sort of lead generation. Affiliate gets paid a commission based on order or lead. See affiliate marketing programs.

AJAX

  • Asynchronous JavaScript and XML. A way to design web pages that are more end-user friendly and respond more quickly when the user requests data. A good example of AJAX in practice is Google Maps.

Alt Tag

@MWins
MWins / general-Dev Questions.md
Last active January 27, 2017 20:45
general-Dev Question

Questions asked by someone on reddit

  • deleted post because they didn't want to answer. Freebie work.

Question: You are committing a file with bug fixes to the SVN, there is an issue with a conflict in the file what does this mean? How do you solve it?

Means files being committed are in danger of being over written. http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.resolve.html

Question: How would you find out what files were out of date within SVN and commit those specific files into a revision with a log message via the command line?

@MWins
MWins / UX-notes .md
Last active January 27, 2017 20:46
UX-notes

Note the fact github uses their icon to link back to the primary domain index page from sub-domains.

promo codes

A word of advice: don't do it the way every other shop does it, with a little field that says "promo code" that laughs in the face of every single paying customer that doesn't have a promo code. It will take users out of the payment flow and off to google to try and find a promo code, and your abandonment rate will go up (plus you'll be giving discounts to people who wouldn't have even known there was a discount to have until you waved it in their face.)

Instead, make promo landing pages that set a cookie that will add a discount to the next order that visitor makes, and distribute the URLs, not the coupon code.

@MWins
MWins / php-date-defaults.md
Last active January 27, 2017 20:46
php-date-defaults

$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm

$today = date("m.d.y"); // 03.10.01

$today = date("j, n, Y"); // 10, 3, 2001

$today = date("Ymd"); // 20010310

$today = date('h-i-s, j-m-y, it is w Day'); // 05-16-18, 10-03-01, 1631 1618 6 Satpm01

@MWins
MWins / css-framework-start.md
Last active January 27, 2017 20:46
css-framework-start

This SO thread has enough info to at least get started :

http://stackoverflow.com/questions/3767584/html-css-framework-what-should-i-definitely-not-miss?rq=1

If you wanted to start at a higher level start with basic questions.

What is the goal of the framework? Will it be micro for handling very specific cases or like Bootstrap/Foundation and aim to cover most use cases ? Will it include javascript/jQuery ? Which browsers/devices will it support? Will it be HTML5 only ? Which CSS reset will it use? Will it be grid based?


@MWins
MWins / recipe-PIZZA SAUCE.md
Last active January 27, 2017 20:47
recipe-PIZZA SAUCE

###PIZZA SAUCE

1 (8 oz.) tomato sauce

1 1/2 tsp. Italian herbs

1/4 tsp. garlic powder

1/2 tsp. salt

@MWins
MWins / Web-Dev-questions.md
Last active January 25, 2017 14:51
Web-Dev-questions
  1. How do I add a description to a website?
  2. How do I add CSS to a webpage?
  3. How do I add CSS to an entire site?
  4. How do I create PHP files?
  5. How do I create a simple PHP template include system?
  6. How do I build a better site?
  7. How should I structure the copy of my website?
  8. How do I setup email for my domain name?