Skip to content

Instantly share code, notes, and snippets.

View MWins's full-sized avatar

Malcolm Winslett MWins

View GitHub Profile
@MWins
MWins / Web-Dev-how to build a website.md
Last active January 25, 2017 14:44
Web-Dev-how to build a website

A quick answer would be :

notepad++ - any text editor. html/php/css

ms paint - make quick wireframes for sites here.

photoshop - alter images, create graphics or full design previews if that's your thing.

get WAMP or MAMP to setup a local webserver for development work.

@MWins
MWins / HTML-Common HTML Tags.md
Last active January 27, 2017 20:41
Common HTML 4 Tags

Common HTML 4 Tags

Below you will find a list of common tags used to achieve basic HTML formatting and descriptions of how Kindle Direct Publishing renders content using these tags. See HTML Tags Supported for a complete list of supported tags and attributes.

Tag Description

  • <a> Anchor for hyperlink. Example:<a href="http://www.amazon.com">Amazon.com </a>
  • <b> Formats enclosed text as bold. (See also: <strong>)
  • <br /> Creates a line break.
  • <center> Centers enclosed text horizontally.
@MWins
MWins / http-status-codes.txt
Last active January 27, 2017 20:47
http-status-codes
Informational 1xx
Successful 2xx
Redirection 3xx
Client Error 4xx
Server Error 5xx
100 Continue
101 Switching Protocols
--------------------------------------------
102 Processing (WebDAV) (RFC 2518)
@MWins
MWins / php-code-stuff-use.php
Last active January 25, 2017 14:48
php-code-stuff-use.
//old php - inspect and verify if still applicable
Twitter Regular Expressions (might require updating urls)
$str = preg_replace('/(https{0,1}:\/\/[\w\-\.\/#?&=]*)/', '<a href="$1">$1</a>', $str);
$str = preg_replace('/@(\w+)/', '@<a href="http://twitter.com/$1" class="at">$1</a>', $str);
@MWins
MWins / xml_def.xml
Last active January 27, 2017 20:48
XML Defines for HTML generation
<xml>
<elements>
<element>
<name>doctype</name>
<required>y</required>
<options>
<option id="5">
<name>HTML 5</name>
<value ><![CDATA[<!DOCTYPE html>]]></value>
</option>
@MWins
MWins / swearWords.xml
Last active January 27, 2017 20:48
XML- Swear Words list
<?xml version="1.0"?>
<words>
<word>anal</word>
<word>anus</word>
<word>arse</word>
<word>ass</word>
<word>ballsack</word>
<word>balls</word>
<word>bastard</word>
<word>bitch</word>
@MWins
MWins / federal-holidays.xml
Last active January 27, 2017 20:49
XML- Federal Holidays list - 2014
<holidays country="usa" year="2014">
<holiday>
<date>1/1</date><year>2014</year>
<occurrence>January 1</occurrence> <display>New Year's Day</display> <longtext>Celebrates beginning of the Gregorian calendar year. Festivities include counting down to midnight (12:00 AM) on the preceding night, New Year's Eve, often with fireworks display and party. The ball drop at Times Square in New York City has become a national New Year's festivity. Traditional end of Christmas and holiday season.</longtext>
</holiday>
<holiday>
<date>1/20</date><year>2014</year>
<occurrence>
Third Monday in January</occurrence> <display> Martin Luther King, Jr. Day </display> <longtext> Honors Dr. Martin Luther King, Jr., Civil Rights leader, who was actually born on January 15, 1929; combined with other holidays in several states. Some cities and municipalities hold parades; and more recently, the 1994 King Holiday and Service Act, which was passed to encourage Americans to transform the King Holiday into a day of citizen action volunt
@MWins
MWins / list-of-domain-exts.txt
Last active January 27, 2017 20:49
Domain Extensions list
AD = Andorra
AE = United Arab Emirates
AF = Afghanistan
AG = Antigua and Barbuda
AI = Anguilla
AL = Albania
AM = Armenia
AN = Netherlands Antilles
@MWins
MWins / ecommerce-list php apps.md
Last active January 27, 2017 20:49
Ecommerce php applications list
  • 1 3D Cart
  • 2 Adobe Business Catalyst
  • 3 AgoraCart (free)
  • 4 Avactis (free basic, $19.95/mo or $199 one time)
  • 5 Big Cartel
  • 6 BigCommerce
  • 7 CafePress!
  • 8 CreateSpace
  • 9 CubeCart (free)
  • 10 DeviantArt
@MWins
MWins / HTML-basic_html5.html
Last active January 27, 2017 20:41
HTML 5 basic document
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>TITLE</title>
<meta name="author" content="NAME">
<meta name="description" content="DESCRIPTION">
<meta name="keywords" content="KEYWORDS,HERE">
<link rel="stylesheet" href="STYLESHEET.css" type="text/css">
</head>