Skip to content

Instantly share code, notes, and snippets.

🏠
Working remotely

Pierre Cholhot pierrecholhot

🏠
Working remotely
Block or report user

Report or block pierrecholhot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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');
stateStore.init();
stateStore.hydrate();
@pierrecholhot
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 3.md

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.

You can’t perform that action at this time.