Skip to content

Instantly share code, notes, and snippets.

View MWins's full-sized avatar

Malcolm Winslett MWins

View GitHub Profile
@MWins
MWins / apache-disallow-xml-downloads-htaccess.txt
Last active January 27, 2017 20:31
apache-disallow-xml-downloads
## Deny access to extension xml files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension xml files
@MWins
MWins / tacoKing.md
Last active January 27, 2017 20:50
Taco King - no tacos, just dump of various web dev topics

SEO BASICS

If we sat down and analyzed why your friend's sites are ranking, the factors contributing to that would be : quality backlinks, good content, structured and consistent markup, meta-formats (if those are used), sitemaps, RSS feeds, social media integration (hate to even mention that one). Redirecting index.php to / wouldn't make the list.

@MWins
MWins / php-write a script.md
Last active January 27, 2017 20:29
php-write a script

Write a script which reads in a directory and provides hyperlinks to the files in it. (skip directories and for a more advanced version allow traversal of sub-directories).

Write a script which accepts multi line input (an HTML textarea) and append or prepends a supplied string to each line.

... which accepts two values and performs simple mathematical functions (add/subtract/divide/multiply) and shows the results on a new page.

... which builds a website through use of included shared pages like a header and menu.

... which accepts multi line input of numeric data and adds it together to produce a sum.

@MWins
MWins / software-development-models.xml
Last active March 14, 2017 14:45
software-development-models
<xml>
<models type="software">
<model>
<name>Waterfall</name>
<description></description>
</model>
<model>
<name>Incremental</name>
<description></description>
</model>
@MWins
MWins / css-property-list-pre-tag.txt
Last active March 14, 2017 14:45
css-property-list
align-items stretch
align-self stretch
animation-delay 0s
animation-direction normal
animation-duration 0s
animation-fill-mode none
animation-iteration-count 1
animation-name none
animation-play-state running
animation-timing-function cubic-bezier(0.25,? 0.1,? 0.25,? 1)
@MWins
MWins / coa-txt.txt
Last active March 14, 2017 14:52
coa-txt
Asset Accounts
No. Account Title To Increase Description/Explanation of Account
101 Cash Debit Checking account balance (as shown in company records), currency, coins, checks received from customers but not yet deposited.
120 Accounts Receivable Debit Amounts owed to the company for services performed or products sold but not yet paid for.
140 Merchandise Inventory Debit Cost of merchandise purchased but has not yet been sold.
150 Supplies Debit Cost of supplies that have not yet been used. Supplies that have been used are recorded in Supplies Expense.
160 Prepaid Insurance Debit Cost of insurance that is paid in advance and includes a future accounting period.
170 Land Debit Cost to acquire and prepare land for use by the company.
175 Buildings Debit Cost to purchase or construct buildings for use by the company.
178 Accumulated Depreciation - Buildings Credit Amount of the buildings' cost that has been allocated to Depreciation Expense since the time the building was acquired.
@MWins
MWins / coa-ex.html
Last active March 14, 2017 14:52
coa
<html>
<head><title>Exp</title>
<SCRIPT type="text/javascript"> function my_onclick() {
alert("FOO");
frames['testiframe'].location.href = "http://localhost/svc/cb.php";
}
</script>
@MWins
MWins / 1.0.0-PMDS.xml
Last active March 14, 2017 14:52
1.0.0-PMDS
<?xml-stylesheet href="modern.css"
title="Modern" media="screen"
type="text/css"?>
<project>
<project_name>Project Management System Specification </project_name>
<header>
<summary>
@MWins
MWins / modern.css
Last active March 14, 2017 14:52
modern.css
ul ,
p,
h3,
info,
section,
project_name,summary
{
display : block;
}
project