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
[ | |
{ | |
"id": "3a6394a.593ef6c", | |
"type": "tab", | |
"label": "Magic Cube", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "fc1b8212.63403", |
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
def path = args[0] | |
def regexp = /^Tests run: (\d+), Failures: (\d+), Errors: (\d+), Skipped: (\d+),/ | |
def results = [:].withDefault { 0 } | |
new File(path).eachFileMatch ~/.*\.txt/, { File file -> | |
file.eachLine { String line -> | |
def matcher = line =~ regexp; | |
matcher.each { pattern, tests, failures, errors, skipped -> | |
results['tests'] += tests.toInteger() |
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
package filedigest; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.InputStream; | |
import java.math.BigInteger; | |
import java.security.DigestInputStream; | |
import java.security.MessageDigest; | |
import javax.swing.JFileChooser; |
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
convert -size 320x90 xc:none -stroke snow4 -size 1x90 -tile gradient:white-snow4 \ | |
-draw 'roundrectangle 16, 5, 304, 85 20,40' +tile -fill snow \ | |
-draw 'roundrectangle 264, 5, 304, 85 20,40' -tile gradient:chartreuse-green \ | |
-draw 'roundrectangle 16, 5, 180, 85 20,40' -tile gradient:chartreuse1-chartreuse3 \ | |
-draw 'roundrectangle 140, 5, 180, 85 20,40' +tile -fill none \ | |
-draw 'roundrectangle 264, 5, 304, 85 20,40' -strokewidth 2 \ | |
-draw 'roundrectangle 16, 5, 304, 85 20,40' \( +clone -background snow4 \ | |
-shadow 80x3+3+3 \) +swap -background none -layers merge \( +size -font Helvetica \ | |
-pointsize 90 -strokewidth 1 -fill red label:'50 %' -trim +repage \( +clone \ | |
-background firebrick3 -shadow 80x3+3+3 \) +swap -background none -layers merge \) \ |