Skip to content

Instantly share code, notes, and snippets.

View pierrecholhot's full-sized avatar
🏠
Working remotely

Pierre Cholhot pierrecholhot

🏠
Working remotely
View GitHub Profile
@pierrecholhot
pierrecholhot / injectSneakyConsoleMessage.js
Created March 30, 2018 11:56
Styled console.log messages
function injectSneakyConsoleMessage(lines) {
if (!(window.console && window.console.log)) { return }
const styles = ['padding: 1em', 'line-height: 2', 'font-size: 2em', 'display: block', 'background: pink']
lines.forEach(line => window.console.log(`%c${line}`, styles.join(';')))
}
injectSneakyConsoleMessage(['The quick brown fox', 'jumps over the lazy dog'])
describe('when `hydrate` method is invoked', function() {
beforeEach(function() {
stateStore = new StateStore();
});
it('should extend `secretObject[namespace]`', function() {
spyOn(_, 'extend');
stateStore.init();
stateStore.hydrate();
@pierrecholhot
pierrecholhot / ulimit
Created February 17, 2015 19:31
ulimit expansion
sudo launchctl limit maxfiles 16384 16384; ulimit -n 16384
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.