Skip to content

Instantly share code, notes, and snippets.

View maxparm's full-sized avatar

Maxime Parmentier maxparm

View GitHub Profile

Keybase proof

I hereby claim:

  • I am maxparm on github.
  • I am maxparm (https://keybase.io/maxparm) on keybase.
  • I have a public key whose fingerprint is 4D79 E4E7 24F7 78EE CB42 D864 25D8 54E7 CB47 C7A8

To claim this, I am signing this object:

@maxparm
maxparm / pr-assessment.md
Last active October 18, 2016 18:37
Pull Request Assessment

Table to Predict Difficulty of a PR (yes = 1, no = 0)

  • Is it involving back-end and front-end? 1
  • Is it involving multiple models/apps? 1
  • Is a database schema change required? 1
  • How many ui screens are involved? N (as number of UI screens involved)
  • Is it involving changes on the mobile apps/extensions? N (as number of apps/extensions involved)
  • Is this a new feature? 1 (due to uncertainity)
  • Will a feature switch be used? 1
  • Does it involve old code (> 2 years old)? 1
  • Do we need to upgrade a library? 1
@maxparm
maxparm / writing-css.md
Created May 18, 2016 15:41
Writing CSS - 7Geese

title: Writing CSS at 7Geese author: name: Maxime Parmentier twitter: maxparm url: http://maximeparmentier.com output: basic.html controls: true

--

@maxparm
maxparm / gist:c508b48902a2f90c9ac9
Last active April 19, 2016 21:19
CJS extension - Remember the Changelog
$(function () {
$('.view-pull-request .js-new-comment-form').on('submit', function (e) {
var text = $('.js-comment-container:first .js-comment-body').text().toLowerCase();
if (text.indexOf('changelog') < 0) {
e.preventDefault();
alert('Please add a changelog!');
}
});
if ($('.pull-request-tab-content')) {
@maxparm
maxparm / EnvironmentHelper.h
Created October 10, 2012 21:47
iOs Environment Helper
//
// Environment.h
//
// Inspired by http://blog.carbonfive.com/2011/06/20/managing-ios-configurations-per-environment-in-xcode-4/
//
#import <Foundation/Foundation.h>
@interface EnvironmentHelper : NSObject
<div><%= message %></div>
@maxparm
maxparm / gist:6055826
Created July 22, 2013 17:31
Exclude folder from "find in files" search in Sublime Text 2
-path/to/ignore/1/*, -path/to/ignore/2/*
@maxparm
maxparm / package.json
Created January 29, 2013 01:57
Rest API unit testing with Mocha and Request.
{
"name": "rest-api-unit-testing",
"version": "0.0.1",
"dependencies": {
"mocha": "1.8.1",
"request": "2.12.0"
}
}
@maxparm
maxparm / gist:2029829
Created March 13, 2012 16:41
JS - Jquery detect keypress enter
$('#element').on('keypress', function(e) {
if(e.which == 13) {
// action();
e.preventDefault();
}
});
@maxparm
maxparm / validate-email.js
Created April 9, 2012 17:10
JS - RFC822 Email Validation
function isEmail(email){
return /^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/.test(email);
}