Skip to content

Instantly share code, notes, and snippets.

View MWins's full-sized avatar

Malcolm Winslett MWins

View GitHub Profile
@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
@MWins
MWins / js-simple-excerises.md
Last active March 14, 2017 14:51
js-simple-excerises

Given a list highlight alternate rows. Zebra striping like this in case it's unclear : http://www.iinuu.eu/userfiles/images/IT_guru/2011/zebra/1.jpg

Read the value of a form input and use an alert to display it to the user.

Same as above but alerts are annoying so place the result in a div below the form.

Toggle the display of a section with a button.

@MWins
MWins / bootstrap-add panel-remove panel.html
Last active March 14, 2017 14:51
bootstrap-add panel-remove
<div class="container">
<div class="col-md-6">
<div class="panel panel-default" id="one">
<div class="panel-heading">Title
<button type="button" id="add" class="pull-right hide">+</button>
</div>
<div class="panel-body">Content here..</div>
</div>
</div>
<div class="panel_row col-md-6">
@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-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 / 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?