This file contains 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
var survivor = '#articleText'; | |
$('*').not($(survivor).children().andSelf().parents().andSelf()).remove(); |
This file contains 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
var jqs = document.createElement('script'); | |
jqs.type = 'text/javascript'; | |
jqs.src = '//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js'; | |
document.body.appendChild(jqs); |
This file contains 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
var jqs = document.createElement('script'); | |
jqs.type = 'text/javascript'; | |
jqs.src = '//cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.2/moment.min.js'; | |
document.body.appendChild(jqs); |
This file contains 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
var jqs = document.createElement('script'); | |
jqs.type = 'text/javascript'; | |
jqs.src = '//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'; | |
document.body.appendChild(jqs); |
This file contains 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
import groovy.time.TimeCategory | |
import groovy.time.TimeDuration | |
long started = System.currentTimeMillis() | |
// TODO: CODE GOES HERE | |
long stopped = System.currentTimeMillis() | |
TimeDuration timeTaken = TimeCategory.minus(new Date(stopped-started), new Date(0)) | |
println "timeTaken $timeTaken" |