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
| %SCRIPT | |
| dialog = new UniversalInputDialog() | |
| dialog.setWindowTitle("Git Commit") | |
| dialog.add("[]", "Git Comment", "comment") | |
| if (dialog.exec() != null) { | |
| comment = dialog.get("comment") | |
| buildManager.runCommand("git add .", editor.fileName()) | |
| buildManager.runCommand("git commit . -m \""+comment+"\"", editor.fileName()) | |
| buildManager.runCommand("git push origin master", editor.fileName()) | |
| } |
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
| #!/bin/bash | |
| # copy | |
| # create script in /usr/local/sbin/gp_to_svg | |
| # run chmod +x on it | |
| python /usr/local/sbin/gp_to_svg.py "$@" |
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 | |
| """ | |
| converts a gnuplot file to svg. | |
| GnuPlot: http://people.duke.edu/~hpgavin/gnuplot.html | |
| """ | |
| import os, tempfile, sys | |
| from tempfile import NamedTemporaryFile | |
| from subprocess import call | |
| from os import listdir |
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 | |
| #generate and plot a ROC curve for a classifier using Orange (http://orange.biolab.si/) | |
| #Source Code: https://github.com/biolab/orange/blob/master/Orange/evaluation/scoring.py | |
| import Orange | |
| learners = [Orange.classification.bayes.NaiveLearner(name="bayes"), | |
| Orange.classification.tree.TreeLearner(name="tree"), | |
| Orange.classification.svm.SVMLearnerEasy(name="easySVM")] | |
| #split data to train and test set |
NewerOlder