Skip to content

Instantly share code, notes, and snippets.

View maxparm's full-sized avatar

Maxime Parmentier maxparm

View GitHub Profile
@maxparm
maxparm / bookmarklet.js
Created May 7, 2019 22:22
Bookmarklet for Jira to Github Issue
javascript:(function(){
var url = location.href;
var title = `${document.getElementById('key-val').innerText} ${document.getElementById('summary-val').innerText}`;
var description = document.getElementById('description-val').innerText;
body = `
### Description
[Jira](${location.href})
${description}

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 / 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 / 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 / view.html
Created July 22, 2015 18:58
Backbone View State
<div class="js-ui-content"></div>
<script id="my-template" type="text/html">
<% if (!data.state.hasConfirmed) { %>
Display name? <button class="js-ui-confirm">Yes</button>
<% } else { %>
Hello <%= data.model.name %>!
<% } %>
</script>
@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')) {
<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 / Procfile
Created January 16, 2013 17:05
Django: serve static files on Heroku cedar stack 1) Make sure files are matching with following 2) Create a /static/ directory and add it to git (make sure it is added, this will trigger collect static command from heroku) 3) Make sure to have gunicorn in requirements.txt
web: python manage.py runserver 0.0.0.0:$PORT --noreload