This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Get Card's last URL segment (eg 4468-fix-the-login-page): | |
| javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('', window.location.href.split("/").pop().split("#")[0])})() | |
| // Get Card's full hash (eg 5731b92ef660293533517de9) : | |
| javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}$('.js-more-menu').click(); prompt('', $('.js-export-json').attr('href').split("/")[2]); $('.js-more-menu').click();})() | |
| // Get Card's unique id (board-independent, eg rKBmQeOk) : | |
| javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}$('.js-more-menu').click(); prompt('', $('.js-short-url').attr('value').split("/").slice(-1)[0]); $('.js-more-menu').click();})() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys, subprocess, collections | |
| from flake8.hooks import git_hook, get_git_param | |
| # `get_git_param` will retrieve configuration from your local git config and | |
| # then fall back to using the environment variables that the hook has always | |
| # supported. | |
| # For example, to set the complexity, you'll need to do: | |
| # git config flake8.complexity 10 | |
| COMPLEXITY = get_git_param('FLAKE8_COMPLEXITY', 10) |
NewerOlder