The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
export class Example { | |
private strVariable: string; | |
constructor() { | |
// Something to do during init. | |
} | |
mtdNothing = (): string => { | |
return "I'm returning nothing."; | |
} // mtdNothing() |
/** Class representing a point. */ | |
class Point { | |
/** | |
* Create a point. | |
* @param {number} x - The x value. | |
* @param {number} y - The y value. | |
*/ | |
constructor(x, y) { | |
// ... | |
} |
# ================================================================================ | |
# Redirects uploads to production. | |
# ================================================================================ | |
<IfModule mod_rewrite.c> | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^wp-content/uploads/(.*)$ https://www.some-website.com/wp-content/uploads/$1 [R=301,NC,L] | |
</IfModule> | |
# ================================================================================ |
# Send all uploads links to production. | |
location ^~ /wp-content/uploads { | |
rewrite ^/wp-content/uploads/(.*)$ https://www.duaneleem.com/wp-content/uploads/$1 permanent; | |
} |
var rm_trans = { | |
affiliateConfig: {ranMID: '42785', discountType: 'item'}, | |
orderid: '2072', | |
currency: 'USD', | |
customerStatus: 'CUSTOMER_STATUS', | |
conversionType: 'Sale', | |
customerID: '0', | |
discountCode: 'upfree2, test2, test3', | |
discountAmount: 39.28, | |
taxAmount: 0, |
/** | |
* @param {string} currentDate - The current date. | |
* @returns {string} Returns the new expiration date. | |
*/ | |
private addYear = (currentDate: string): string => { | |
// Add a day to the current date. | |
let objDate = new Date(currentDate); | |
objDate.setDate(objDate.getDate() + 1); | |
// Format the month. |
version: '3' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
ports: | |
- "3406:3306" | |
restart: always |
<?php | |
/** | |
* This template is used for displaying PRIVATE pages. | |
* | |
* Template Name: Private: Full Width | |
*/ | |
get_header(); ?> | |
<div class="wrapper section medium-padding"> |
<HashRouter> | |
<div> | |
<Route path="/" component={Home} /> | |
<Route path="about" component={About} /> | |
<Route path="teachers" component={Teachers} /> | |
<Route path="courses" component={Courses} /> | |
</div> | |
</HashRouter> |