View git log
git log --format='-- %nsha: %H %nauthor: %an %nemail: %ae %ndata: %ar %nsubject: %s%nbody: %b'
View invoice.html
<div class="invoice-simple document">
<!-- Page 1 -->
<div class="page">
<header>
<img src="../../assets/images/park-logo.png"></img>
<div class="doc-type">ESTIMATE</div>
</header>
<footer>
<strong>Park IP Reference number:</strong>
View promiseCatching.js
function failingPromise() {
throw new Error('foobar');
return Promise.resolve(4);
}
// works fine not in chain, error is thrown
failingPromise()
.then(num => {
console.log(num);
});
View catchPromises.js
// in the browser
window.addEventListener('unhandledrejection', function(event) {
console.error('Unhandled rejection (promise: ', event.promise, ', reason: ', event.reason, ').');
});
// in Node
process.on('unhandledRejection', (reason, p) => {
console.log("Possibly Unhandled Rejection at: Promise ", p, " reason: ", reason);
View rebuild.md

Install electron-gyp

npm install electron-gyp -g

Get your electron version

$ electron -v
View config.less
.linter-row.decoration {
border-radius: 3px;
justify-content: center;
color: darken(@red, 30%);
.linter-gutter.linter-highlight.error, .linter-gutter.linter-highlight.warning{
&:before {
background-color: darken(@red, 30%) !important;
position: absolute;
View keybase
### Keybase proof
I hereby claim:
* I am dperrymorrow on github.
* I am dperrymorrow (https://keybase.io/dperrymorrow) on keybase.
* I have a public key whose fingerprint is E5B8 AB61 4395 76F9 7FB2 BA4F 4548 8C8A 56A3 9E6D
To claim this, I am signing this object:
View FactoryInherit.js
const animal = () => {
return {
name: 'animal',
eat() {
console.log(`my name is ${this.name} i am a eating`);
}
};
}
View SimpleFactory.js
const dog = (name) => {
const type = 'dog';
return {
name: name,
speak() {
console.log(`my name is ${this.name} i am a ${type}`);
}
};
}
View shortcuts.js
{
code: 'Semicolon',
key: 'playPause',
characters: [';'],
title: 'Play / Pause',
description: 'the audio playback'
},
{
code: 'BracketLeft',
key: 'rewindPhrase',