This is cool init!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var calculateGst = function(price, taxRate) { | |
return (price * (taxRate * 100) / 100).toFixed(2); | |
}; | |
var addGst = function(price, taxRate) { | |
return (price * 1 + ( price * (taxRate * 100) / 100 )).toFixed(2); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function guid() { | |
function s4() { | |
return Math.floor((1 + Math.random()) * 0x10000) | |
.toString(16) | |
.substring(1); | |
} | |
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + | |
s4() + '-' + s4() + s4() + s4(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"user": { | |
"debug": false, | |
"delay": 0.25, | |
"error_color": "D02000", | |
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Danish Royalty/Danish Royalty.gutter-theme", | |
"gutter_theme_excludes": [], | |
"lint_mode": "load/save", | |
"linters": { | |
"htmltidy": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options +FollowSymLinks | |
<ifModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !index | |
RewriteRule (.*) index.html [L] | |
</ifModule> |
A list of links so good, they deserve more than a bookmark!
- scalable-css-reading-list The list that inspired this!
- Sass linting
- Mac set up script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Simple example of how to use the validators in a Redux form | |
* This file is pseudo code | |
*/ | |
// Other imports would go above here ^^ | |
import {validators, validatedForm} from 'common/validation' // import validators & validatedForm | |
import {details} from './actionMaps' | |
const Details = ({data, fields, handleSubmit, resetForm, close, dirty}, {trans, permissions}) => ( |
I hereby claim:
- I am stewartduffy on github.
- I am stewartduffy (https://keybase.io/stewartduffy) on keybase.
- I have a public key ASARwN_OJIt_ocd1JKk5HsgC8RiK6xCmoL8lufcYoVNKgwo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"jobs": [ | |
{ | |
"name": "Westpac", | |
"link": "https://www.westpac.co.nz/", | |
"city": "Auckland, NZ", | |
"startDate": "December 2020", | |
"endDate": "Present" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doMyBidding() { | |
alert('yes me lord'); | |
} |