Skip to content

Instantly share code, notes, and snippets.

Avatar

Malcolm Winslett MWins

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

##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 Aug 29, 2015
design practice work
View design practice work.md

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 Jan 27, 2017
Advice on Startups and General
View advice-others.md

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 Aug 10, 2017
SEO-terms
View SEO-terms.md

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 Jan 27, 2017
general-Dev Question
View general-Dev Questions.md

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?

View UX-notes .md

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 Jan 27, 2017
php-date-defaults
View php-date-defaults.md

$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 Jan 27, 2017
css-framework-start
View css-framework-start.md

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 Jan 27, 2017
recipe-PIZZA SAUCE
View recipe-PIZZA SAUCE.md

###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 Jan 25, 2017
Web-Dev-questions
View Web-Dev-questions.md
  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?