Skip to content

Instantly share code, notes, and snippets.

Working remotely

Pierre Cholhot pierrecholhot

Working remotely
View GitHub Profile
View injectSneakyConsoleMessage.js
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'])
View Jasmine
describe('when `hydrate` method is invoked', function() {
beforeEach(function() {
stateStore = new StateStore();
it('should extend `secretObject[namespace]`', function() {
spyOn(_, 'extend');
pierrecholhot / ulimit
Created Feb 17, 2015
ulimit expansion
View ulimit
sudo launchctl limit maxfiles 16384 16384; ulimit -n 16384
View .jshintrc
// --------------------------------------------------------------------
// 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
View Contract Killer

Contract Killer 3

Revised date: 07/11/2012

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


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.