Created
October 9, 2014 14:58
-
-
Save clemherreman/5bf7f3cabb4c1db2ee4b to your computer and use it in GitHub Desktop.
Joseph's productivity x1000 multiplier
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
// Step 1: include jQuery | |
var jq = document.createElement('script'); | |
jq.src = "//code.jquery.com/jquery-latest.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
// ... give time for script to load, then type. | |
jQuery.noConflict(); | |
// Step 2: create a textarea | |
jQuery('#console').after('<textarea id="filenames"></textarea>'); | |
// Step 3: copy/paste your list of files in the textarea. Don't forget to remove not-deployed files | |
// like tests/ etc. | |
// Step 4: Add files to the "to be deployed" lists | |
var files = jQuery('#filenames').val(); | |
var filesList = files.trim().split(/\n/); | |
jQuery('#lstUpdate').empty(); | |
var version = jQuery('#lstVersion').val(); | |
jQuery.each(filesList, function(i, filename) { | |
jQuery('#lstUpdate').append( | |
'<option value="'+version+'/'+filename+'">/'+filename+'</option>' | |
); | |
}); | |
// Step 5: ??? | |
// Step 6: Profit! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment